I want to jumble up numbers from 1 to 16 and store them in an array for a game i'm planning. I have tried various approaches but nothing seems to work. This is how i am generating a random no:
srand((unsigned)time(NULL));
int random_no=rand()%16;
random_no++;
Any ideas??



LinkBack URL
About LinkBacks




