Search:
Forum
General C++ Programming
random numbers
random numbers
Jun 20, 2008 at 9:02am UTC
asdfghjkl
(8)
does any one know a library that can help me generate random numbers starting from a seed that can stor larger values than an int for example long long??
Jul 15, 2008 at 11:59am UTC
shereif102
(4)
u can use
#include<stdlib.h>
the function is rand()
i thibk that is all :D
Jul 15, 2008 at 4:08pm UTC
rlskinner
(5)
rand() is all you get on Windows
On Linux you get
int random()
double drand48()
random and drand48 take 8 or more bytes of seed state.
Or you can use Boost, and pick from several very good generators which have even larger seed state.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs