Search:

Type: Posts; User: cas

Search: Search took 0.01 seconds.

  1. The reason I suggested shuffling an array is that...

    The reason I suggested shuffling an array is that rejecting repetition has the possibility of infinitely looping. If the PRNG gets in a loop of generating numbers, none of which satisfies the...
  2. int j; int m_num[j]; This is problematic,...

    int j;
    int m_num[j];

    This is problematic, because j has no known value at the time you use it to initialize m_num. Perhaps you meant M?

    The easiest way to achieve what you want is probably to...
Results 1 to 2 of 2