Mail Archives: djgpp/1998/07/03/01:17:12
In article <1998070219214100 DOT PAA22119 AT ladder03 DOT news DOT aol DOT com>,
malcolmj7 AT aol DOT com (MalcolmJ7) wrote:
>
> how do i randomize these functions?
> every time i use them they give me the same numbers, in the same order.
> when I use srandom() this, still gives me same numbers, in the same order.
>
> isn't there a randomize() statement, like in turbo c?
>
Seed the random number generator:
#include <time.h>
srandom(time(NULL));
Voila!
WR
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
- Raw text -