README.md

December 5, 2022 ยท View on GitHub

A REAL RANDOM NUMBER GENERATOR

Description

This code will create completely random numbers for you!

More Info

The user MUST hace a Label named Label1 and a Button named Command1!!!

This program, after pressing the button, creates a random number in the label.

Submitted On
ByAlex M
LevelBeginner
User Rating3.1 (34 globes from 11 users)
CompatibilityVB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0
CategoryMiscellaneous
WorldVisual Basic
Archive File

Source Code

Sub Command1_Click ()
Randomize 'makes it random
  'makes a random number, 1 - 100 in Label1
  Value = Int(100 * Rnd)
  Label1.Caption = Str$(Value)
End Sub