[VBNET][OS] Random Number Generator

Results 1 to 1 of 1
  1. #1
    Proficient Member Virtue~ is offline
    MemberRank
    Jul 2008 Join Date
    181Posts

    [VBNET][OS] Random Number Generator

    All you need is a Button1 and a TextBox1
    Download Exe: http://elitetactics.sytes.net/random.exe
    Code:
    Public Class Form1
    
        Public Function RandomNumber(ByVal low As Int32, ByVal high As Int32) As Integer
            Static RandomNumGen As New System.Random
            Return RandomNumGen.Next(100, 1000000000 + 1)
        End Function
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            TextBox1.Text = RandomNumber(1, 999999999 + 1045300)
        End Sub
    End Class
    Hope you like.
    How to use the function = RandomNumber(LOW, HIGH + NUMBERTOADD)




Advertisement