fixed rand()