Click here to Skip to main content
15,921,226 members

Comments by andrew nader (Top 9 by date)

andrew nader 31-May-16 7:50am View    
class rand in c# use Midsquare method , Linear Congruential Method,Combined Linear Congruential Generators or Random-Number Streams and why
andrew nader 31-May-16 7:50am View    
class rand in c# use Midsquare method , Linear Congruential Method,Combined Linear Congruential Generators or Random-Number Streams and why
andrew nader 27-May-16 10:49am View    
i know subtract one.but i means what is benefit of subtract one ?? :laugh:
andrew nader 27-May-16 10:37am View    
int amountOfRandomNumbers = 10;
var possibleNumbers = new List<int>();
for (int i = smallestNumber; i <= biggestNumber; i++)
possibleNumbers.Add(i);
What is meant by this.??
int randomNumber = rand.Next(1, possibleNumbers.Count) - 1;

and what is meant by -1 ???
thanks alot
andrew nader 27-May-16 9:50am View    
what is seed in this code please??