Imran Akram's blog

Let's talk about life, technicalities, career opportunities, current affairs and a lot more!

How to generate Random numbers in .NET

Actually these are not exactly ‘true’ random numbers. These are actually pseudo-random numbers, which means that they give you an illusion that they’re being generated randomly. It’s very simple: There’s a class called System.Random. and the rest is as simple as this:- Random r = new Random(0); int num = r.Next(0,999999); in VB .NET dim [...]

  • Share/Bookmark