Puzzle DA6


Fill an array with random integers in the range Low to High

[E-4] Write a function that fills an array with random integers. Pick integers in the range Low..High (inclusive.) Here is the output of a program that tests this function by filling an array of 100 elements with integers in the range 0..100.

   0   56   19   81   59   48   35   90   83   75
  17   86   71   51   30    1    9   36   14   16
  99   45   12    0    0   38   53   57   60   61
  16   66   45   35    5   61   79   81   52   30
  88   73   96   93   54   14   46   23   87   21
  78   85  100  100   61   39   26   30   84    2
  37    9   68    5    0   92   27   27   59   69
  84   73   48   20   75   47   46   95   75   10
  60   38   74   61   57   36   15   22   42   81
  52   99   75   34   17   66   49    6   70   50

Use a function from the R section of puzzles to generate the random integers. Or do this from scratch if you want practice.



Previous Page        Answer         Next Page         Home