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
~169 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for iv54

im trying to print the array 5 times, each time containing different numbers but it repeats the same random numbers. help please. [CODE] while(count<5){ fillarr2(ran1,ran2); printar(ran1,ran2,counting); } // functions void fillarr2(int raa[],int rab[]){ int ran1,ran2, i,count=0; srand(time(NULL)); for(i=0;i<10;i++){ ran1=rand()%15+1; raa[i]=ran1; } for(i=0;i<10;i++){ ran2=rand()%15+1; rab[i]=ran2; } return ; } void printar(int …

Member Avatar for Fbody
0
169