Advertisement
Guest User

Untitled

a guest
Nov 16th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. void fillArray(int* array, int current, int max = 6)
  2. {
  3.     array[current] = rand() % 44 + 6;
  4.     if(current < max)
  5.     {
  6.         fillArray(array, (current + 1), max);
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement