[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CSharpRandom
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CSharpRandom
(C#) Random
Class for generating pseudo-random numbers.
//Console application
//Create an instance of Random
Random myRandom = new Random();
for (int i=0; i<10; ++i)
{
//Draw a random number
int x = myRandom.Next(100);
//Write number to screen
Console.WriteLine(i.ToString() + ": " + x.ToString());
}
Random links
- C++ library (from Boost)
Code links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
