Type Summary

						public class Random
{
  // Constructors
     public Random ();
     public Random (int Seed);

  // Methods
     public virtual int Next ();
     public virtual int Next (int maxValue);
     public virtual int Next (int minValue, int maxValue);
     public virtual void NextBytes (byte[] buffer);
     public virtual double NextDouble ();
  MS
						protected virtual double Sample ();
}

KG The Random class provides a great mechanism for generating “pseudo”-random numbers. Don't use it for mission-critical random generations, however, since it can't be considered reliable enough for truly random generation.

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.