answersLogoWhite

0

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

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

Answer

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

r = Random(1, 100)

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How you can generate an random unique number in visual basic studio?

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.


What code is used to generate random questions from a database in visual basic?

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.


The function in Visual Basic that returns a random number between 0 and 1 is?

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


What is visual basic control?

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


What are some of the projects 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


The year of invention of visual basic?

Visual Basic was started in 1991.


Who invented the visual basic?

Visual Basic was created by a team at Microsoft.


Who developed visual basic?

Microsoft is the developer of visual basic


What is the difference between visual basic and visual c?

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


Is Visual Basic 6.0 compatible with Visual Basic 2005?

No.


When visual basic started?

Visual Basic was started in 1991.


Who is the developer of Visual Basic?

Microsoft is the developer of Visual Basic.