[Dev-C++] random numbers with double precision
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Anton Z. <zi...@ma...> - 2005-02-16 22:05:21
|
Hi, I need to produce random numbes uniformly distributed between 0 and 1. = I can use (rand()%MAX_INT)/MAX_INT, but this gives me only 30 thousand = something different numbers, because rand() is an integer. So, if I cannot simulate something probability of which is less than = 1/MAX_INT. Is there an analog of drand() function in Dec C/C++? If anyone can help, it is apprecated! Anton |