> It's staggering insofar as it's the first language I've used that > doesn't preseed the random number generator.
I wasn't really a surprise to me because it reminded me how C works:
#include <stdio.h> #include <stdlib.h> #include <time.h>
void main(void) { /* srand ( time(NULL) ); uncomment this to seed the PRNG */ printf("Random %d", rand()); }
« Back to merge proposal
> It's staggering insofar as it's the first language I've used that
> doesn't preseed the random number generator.
I wasn't really a surprise to me because it reminded me how C works:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void main(void) {
printf( "Random %d", rand());
/* srand ( time(NULL) ); uncomment this to seed the PRNG */
}