It’s very simple: There’s a class called System.Random. and the rest is as simple as this:-
In C#,
Random r = new Random(0);
int num = r.Next(0,999999);
int num = r.Next(0,999999);
in VB .NET,
dim r as Random = new Random(0)
dim num as Int = r.Next(0,999999)
dim num as Int = r.Next(0,999999)
No comments:
Post a Comment