A Problem with rand()

Discussion about other targets
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

I've prepared a randomize() function in a generic version and put it in the stdlib functions group.

Compilers normally declare it as a macro like:
#define randomize srand((unsigned)time(NULL))

I think the same trick can be kept when time() is available.
Post Reply