See, e.g., 
http://en.wikipedia.org/wiki/Random_number_generation#Computational_methods. 
The algorithm creates a 32-bit random integer. It can be reduced to the 
range 0 to N with the modulus operator.
 
Dave

On Thursday, October 10, 2013 4:51:42 AM UTC-5, atul007 wrote:

> Hello,
>    Given integer N , How to generate random number from 0 to N without 
> using rand() function.   
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to algogeeks+unsubscr...@googlegroups.com.

Reply via email to