[Solved] An algorithm for Random Number Pair Generation [closed]


Well firstly, to achieve “best case” repeatability you could simply remove the pair of numbers form the arrayofkeys to avoid them repeating again.
And if you do not want that to happen, you’re not really generating your numbers purely randomly.

To generate your numbers only within a specific range use rand(x,y) where x and y are your limits. You can get those from your arrayofkeys by doing min(arrayofkeys) and max(arrayofkeys).

3

solved An algorithm for Random Number Pair Generation [closed]