Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21264

[RESOLVED] randomize producing the same number more than once

$
0
0
i have a 80 number msflexgrid cols 0 to 9 rows 0 to 7
I try to produce 20 randomly selected numbers, but have found the randomize outputs the same numbers more than once sometimes the same number is out put 3-4 times.
The randomize is only called on form load
How do i correct this:

Code:

Name:  randomiize Problem 12_20_13.jpg
Views: 49
Size:  317.0 KB
    pCol = (pindex - 1) Mod flexCleo.Cols
 
End Sub

Attached Images
 

Viewing all articles
Browse latest Browse all 21264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>