System.Random

E697482

System.Random is a .NET class that provides methods for generating pseudo-random numbers for use in applications.

All labels observed (2)

Label Occurrences
System.Random canonical 1
System.Random.Shared 1

How this entity was disambiguated

Statements (49)

Predicate Object
instanceOf .NET class ⓘ
class ⓘ
pseudo-random number generator ⓘ
algorithmType linear congruential generator (LCG)-style ⓘ
assembly System.Runtime ⓘ
mscorlib ⓘ
linked to: mscorlib.dll
baseType System.Object ⓘ
canBeSubclassed true ⓘ
constructor Random() ⓘ
Random(int seed) ⓘ
defaultConstructor Random() ⓘ
designGuideline recommended to create one instance and reuse it ⓘ
distribution uniform distribution over specified ranges ⓘ
documentationUrl https://learn.microsoft.com/dotnet/api/system.random ⓘ
extension can be extended by overriding Sample() to change distribution ⓘ
introducedIn .NET Framework 1.0 ⓘ
linked to: .NET Framework
isAbstract false ⓘ
isDeterministicWithSameSeed true ⓘ
isPublic true ⓘ
isSealed false ⓘ
isSerializable false in .NET Core by default ⓘ
true in .NET Framework ⓘ
isThreadSafe false ⓘ
languageBinding C# ⓘ
F# ⓘ
VB.NET ⓘ
linked to: Visual Basic .NET
library .NET 5+ ⓘ
linked to: .NET (5 and later)

.NET Core ⓘ
.NET Framework ⓘ
method double NextDouble() ⓘ
int Next() ⓘ
int Next(int maxValue) ⓘ
int Next(int minValue, int maxValue) ⓘ
protected virtual double Sample() ⓘ
void NextBytes(Span<byte> buffer) ⓘ
void NextBytes(byte[] buffer) ⓘ
namespace System ⓘ
notSuitableFor cryptographic randomness ⓘ
outputRange Next() returns Int32 in range [0, Int32.MaxValue) ⓘ
Next(int maxValue) returns Int32 in range [0, maxValue) ⓘ
Next(int minValue, int maxValue) returns Int32 in range [minValue, maxValue) ⓘ
NextDouble() returns Double in range [0.0, 1.0) ⓘ
overridableMethod Sample() ⓘ
relatedClass System.Random.Shared ⓘ
linked to: System.Random

System.Security.Cryptography.RandomNumberGenerator ⓘ
seedSource time-dependent default seed when using Random() constructor ⓘ
staticProperty Random Shared ⓘ
staticPropertyType Random Shared is thread-safe ⓘ
usage general-purpose pseudo-random number generation ⓘ

How these facts were elicited

Referenced by (2)

Full triples — surface form annotated when it differs from this entity's canonical label.

System → containsType → System.Random ⓘ
System.Random → relatedClass → System.Random.Shared ⓘ
linked to: System.Random