Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: [QUOTE=Attendant] is there a better way to assign the "rand()%9;" command? peace,[/QUOTE] This may not be better, but it is shorter for (int a=1; a<4; a++){ for(int b=1; b<4; b++){ slots[a][b] = rand()%9; OR slots[a][b]=( rand() *10 ) +1; //this assumes you wanted 1-10 } } |
The End.