Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

generate random number as usual

bump the random number to to the next highest element of the set

e.g. suppose your random number is in r and set is in array set[]

i=0;

while ( i < MAX && r < set[i] )

i++;

r = set[i];

MAX is the cardianlity of the set