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

[RESOLVED] Random Number

$
0
0
Hi,
Could anyone advise me on the code for generating a random number between 1 and 100.
I'm looking for something on the lines of;

random number = Int(Rnd * 100) + 1


The code above works, but always generates the same numbers when the program is run. I am using the random number to bring pictures into the program and the same pictures are always brought in in the same order.

Thanks you.

Viewing all articles
Browse latest Browse all 21131

Trending Articles



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