Random Numbers in C#
The Random
class in C# provides pseudorandom number generation.
To run the program, compile and execute it:
Note that some of the generated numbers may be different when you run the sample, except for the ones generated with a specific seed.
See the Random Class documentation for references on other random quantities that C# can provide.