Class DistributedRandomNumberGenerator

java.lang.Object
nxt.addons.AbstractContract<Map<String,Long>,String>
com.jelurida.ardor.contracts.DistributedRandomNumberGenerator
All Implemented Interfaces:
Contract<Map<String,Long>,String>

public class DistributedRandomNumberGenerator extends AbstractContract<Map<String,Long>,String>
The DistributedRandomNumberGenerator is a utility contract which given a list of accounts and their weight, selects randomly one the accounts. For example, if there are 3 account with weights 5,3,2 the chance of the first account being selected is 50% the 2nd 30% and the 3rd 20%.