check here for generating randoms.
if you want something else explain better.

http://www.cs.geneseo.edu/~baldwin/reference/random.html