cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Random number
Random number
Feb 8, 2012 at 9:47am UTC
rambo1177
(35)
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 ).
Feb 8, 2012 at 10:27am UTC
MrHutch
(1822)
What do you mean no inbuilt functions? Why wouldn't you want to use
rand()
?.
Feb 8, 2012 at 11:09am UTC
Moschops
(7244)
Mersenne Twisters are commonly used. Here's one:
http://www.bedaux.net/mtrand/
Topic archived. No new replies allowed.