VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code generates random whole numbers between 1 and 10 to change the range just change the 10 to

by Phillip De Suze (3 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 16th April 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This code generates random whole numbers between 1 and 10 to change the range just change the 10 to the value you want. Great for doing random

Rate This code generates random whole numbers between 1 and 10 to change the range just change the 10 to



Randomize   ' Initialize random-number generator.

MyValue = Int((10 * Rnd) + 1)   ' Generate random value between 1 and 10

Download this snippet    Add to My Saved Code

This code generates random whole numbers between 1 and 10 to change the range just change the 10 to Comments

No comments have been posted about This code generates random whole numbers between 1 and 10 to change the range just change the 10 to. Why not be the first to post a comment about This code generates random whole numbers between 1 and 10 to change the range just change the 10 to.

Post your comment

Subject:
Message:
0/1000 characters