Posts
 
Reputation
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
~52.7K People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for Bob

[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 } }

Member Avatar for JamesCherrill
3
53K

The End.