There’s a growing demand for qualified analysts who can make sense of Big Data. With an MS in Data Analytics, you can become the data mining, management, mapping, and munging expert that today’s leading corporations desperately need.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
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