Click or drag to resize
DigitalRuneDistributionTRandom Property

Note: This API is now obsolete.

Gets or sets the random number generator.

Namespace: DigitalRune.Mathematics.Statistics
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
[ContentSerializerIgnoreAttribute]
[ObsoleteAttribute("The properties Random and NextValue have been declared obsolete because the .NET class Random is not thread-safe, which can lead to problems in multithreaded applications. Use the method Next(Random) instead, which is thread-safe if used properly.")]
public Random Random { get; set; }

Property Value

Type: Random
The random number generator.
Remarks
Per default, the global random number generator of the RandomHelper is used. A different random number generator can be set. Set this value to to use the default random number generator (see Random).
See Also