Tutorials Navigation

Tutorials :: New :: Popular :: Top Rated

Tutorials: 18,357 Categories: 12

Total Tutorial Views: 42,405,432

[VB.NET] How to Make a Random Number Generator

Tutorial Name: [VB.NET] How to Make a Random Number Generator  

Category: PC Tutorials

Submitted By: Maj

Date Added:

Comments: 2

Views: 2,212

Related Forum: PC Building Forum

Share:

Ever wanted to make a small project to make your own number generator? Just dont trust those sites, eh? Well here's how you can do it using VB.Net




Step 1. Make a new form and add a button and a textbox, like shown below

[ Register or Signin to view external links. ]


Step 2. Double click the Button and add the following code

Dim rnd As New Random
TextBox1.Text = rnd.Next(1, 100)

* The 1 & the 100 are the minimum numbers to be generated, these can be set to anything you like!

It should look something like the below

[ Register or Signin to view external links. ]


Step 3. Debug your application and test it out!!

[ Register or Signin to view external links. ]




Just like that you should now have your very own working random number generator!!

Ratings

Current rating: 5.50 by 2 users
Please take one second and rate this tutorial...

Not a Chance
1
2
3
4
5
6
7
8
9
10
Absolutely

Comments

"[VB.NET] How to Make a Random Number Generator" :: Login/Create an Account :: 2 comments

If you would like to post a comment please signin to your account or register for an account.

HaloPosted:

Not a bad guide on making a number gen. Thanks.

ZydrinPosted:

Now this is something I can use. Thanks for sharing this!!