Best Answer

Or you can do Rnd*232 Where 232 is a number of your choice higher or lower number. I have used this in a Timer and works well.

Valtros

------------------------------------------------------------------------------------------------------------------

Use the random function. The example below will give a random number between 1-100

r = Random(1, 100)

Q: How do you get Visual Basic to generate a random number?

Write your answer...

Submit

Still have questions?

Continue Learning about Math & Arithmetic

x ^ (1 / 3)

You can review about the number system in detail on the link given below Thanks

In Visual Basic 6, I use this equation:SurfaceArea = ((PI * radius) / (6 * Depth2)) * ((radius2 + 4 * Depth2) (3/2) - radius3)

At the basic level, the modulus of a number or expression is simply the value of the number or of the expression. For a positive number the modulus is the number, for 0 it is 0, and for a negative number, x, it is -x (which is positive).

It is useful for people to learn about some of he basic operations of arithmetic.

Related questions

You can use this function: Function Random(ByVal Lowerbound As Long, ByVal Upperbound As Long) Randomize() Random = Int(Rnd * Upperbound) + Lowerbound End Function And use it by using: whatever.Text = Random(1, 1000) This example gives a number between 1 and 1000.

You can use the Randomize() function in order for you to get random questions from your database. You can use the primary keys in the database for each question as the basis for the randomization process.

GUI

(Int(0 * Rnd) +1) * UNSURE AS I DONT HAVE VB ON MY PC ATM *

Visual Basic Controls work on Visual Studio for Visual Basic and Applications that made by Visual Basic.

There are countless programs that can be created using Visual Basic. Here are a few: - Minesweeper - Coin change calculator - Pacman - Text Editor - Random key generator - Calculator - Web Browser - Hangman

Visual Basic was started in 1991.

Microsoft is the developer of visual basic

Visual Basic was created by a team at Microsoft.

The programming language: Visual Basic is a BASIC-like (or BASIC-derived) language, Visual C is... well C.

Microsoft is the developer of Visual Basic.

No.