How to Generate Random Numbers in ASP.NET and .NET Framework
Random number generation is a common programming endeavor, but many developers are unaware of the true nature of the random numbers generated by a system. In this article I would explain about how to generating a random numbers and how to use them in your .NET applications Generating random numbers is often a hot topic for programmers. The reason is that seemingly random numbers are most often not genuinely random. This is due to the deterministic algorithm utilized by a platform like .NET. Deterministic systems leave nothing to chance; they're lawful out of necessity; and they conform to the ideal of a machine in which wear and tear and mechanical failures are absent. Modern computers are conceived as deterministic machines. The Random class The .NET Framework provides the Random class, which allows you to generate a number or a series of numbers to be used accordingly. You may be wondering why .NET bothers to include the Random class.