Random number

Can anyone write a function or tell the logic of how to generate a random / pseudorandom number ( pls do not come up with inbuilt fuctions ).
What do you mean no inbuilt functions? Why wouldn't you want to use rand()?.
Mersenne Twisters are commonly used. Here's one: http://www.bedaux.net/mtrand/
Topic archived. No new replies allowed.