Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[VBNET][OS] Random Number Generator

Junior Spellweaver
Joined
Jul 6, 2008
Messages
173
Reaction score
2
All you need is a Button1 and a TextBox1
Download 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)
 
Back
Top