try something like a search engine.
Or a book on probability theory.
And why don't you want to use the built-in random number generator? That very fact tells me that it IS in fact homework, as every realistic project first tries to find an existing component to do something like that as it saves a lot of time and effort and is far more likely to work correctly than something you write yourself.
Reputation Points: 1658
Solved Threads: 331
duckman
Offline 7,719 posts
since Nov 2004