Fixed rand()