Search:

Type: Posts; User: laserlight

Search: Search took 0.07 seconds.

  1. Yeah, since the number of numbers that you are...

    Yeah, since the number of numbers that you are selecting at random without replacement is small compared to the range of numbers, rejecting repetition is a good solution. When the number of numbers...
  2. It looks like it is the same method: shuffle the...

    It looks like it is the same method: shuffle the array.


    Given the range [0, 39], add 1 to get [1, 40]. In your case, it means starting the initial values of the array at 1, not 0.
  3. Not really: a "truly" random number generator...

    Not really: a "truly" random number generator would also be expected to produce repeating numbers, from time to time. It is merely a matter of "selecting at random with replacement" versus "selecting...
Results 1 to 3 of 3