"eBob.com" <eB******@totallybogus.comschrieb
Could you explain the following line in the code you posted above ...
If Not Unique OrElse Not Result.Contains(Value) Then
I don't understand "Unique". Even if you were posting pseudocode I am
still confused because
Not Result.Contains(Value) is the same thing as unique, isn't it?
Unique is a parameter that I took from you own declaration. My
interpretation was that it should tell the function if each random number
has to be unique in the array. So, the condition means: If the values don't
have to be unique (Not Unique), or, otherwise (OrElse), if the value is not
in the list yet (Not Result.Contains), then add it to the list (Result.Add).
Armin