A random number generator.
Namespace:
ceometric.VectorGeometryAssembly: ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.6.0.0 (1.6.0.0)
Syntax
| C# |
|---|
public class RandomGenerator |
| Visual Basic (Declaration) |
|---|
Public Class RandomGenerator |
| Visual C++ |
|---|
public ref class RandomGenerator |
Remarks
The random number generator generates random numbers globally from one seed. It is initialized
automatically from a random seed at the time one of its static methods is first called. All random
numbers follow as one consecutive series. For example, for a random number within [-1,+1], simply
write double rnd = RandomGenerator.random.NextDouble_1_1();. An explicit
instantiation or initialization is not necessary.