If you're making a number generator for an assignment or just to do it, Google for algorithms. The good ones are not simple! If you need one for any kind of professional or serious use, try the library methods mentioned above. They're much better (more random) than anything we could make up.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Your mind is under my control .... your will is now mine .... read this tiny ad