I use a random function(Let's call it randomNum
()) to generate random numbers(unsigned long) continuously(will generate about one million numbers in total).My question is How to determine whether the frequency of current number generated is greater than 20%(among the total numbers generated so far) efficiently?
Please write down your opinion or your c code?Thanks.