[Message Deleted]
C#
4
Posts
4
Posters
0
Views
1
Watching
-
Hi! Simply: Generate a "regular" random number in the range [0...n[ with n being the number of elements in the array of values and use it as index into your array.
Regards, mav -- Black holes are the places where God divided by 0...
-
the minimum value should be 0 and the maximum value should be the length of array ( minus 1). Next generate the random number b/w the range and then use myarray[randomNo], to get a randomnly selected value from the array.
haseeb