Mail Archives: djgpp/1997/08/21/00:16:16
DId you try resetting srand with time?
Try srand((int) time (NULL));
On 16 Aug 1997, Zampelli Stéphane wrote:
>
> Hi!
>
>
> I still can't obtain truly random numbers with the srand(), random(), and
> rand() functions, because, whatever the seed number i put in srand(), it is
> _always the same results.
>
> What can i do about it ?
>
> A+. Xyy.
>
>
>
,,,
(0 0)
+-------------oOO----(_)-------------------+
| Andrew Deren |
| aderen AT eecs DOT uic DOT edu |
| www.eecs.uic.edu/~aderen/ader/main.html |
+-------------------------oOO--------------+
|| ||
ooO Ooo
- Raw text -