Overview:
In this article i would like to publish an article "To Generate a Random Number".
Description:
In C#.Net we have an Random Class that class consists of 3 overloaded methods.Those are
- Next()
- Next(MaxValue)
- Next(MinValue,MaxValue)
Next() If we uses this method it gives any random value
Next(MaxValue) If we uses this method it gives upto the given max value range
Next(ManValue,MaxValue) If we uses this method it gives in between min and given max values range.
Intialization of Random Class:
Random O=new Random();
Program:
No comments:
Post a Comment