GMP Native Interface for .NET
gmp_libgmp_randinit_default Method |
Initialize state with a default algorithm.
Namespace: Math.Gmp.Native
Assembly: Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)

public static void gmp_randinit_default( gmp_randstate_t state )
Public Shared Sub gmp_randinit_default ( state As gmp_randstate_t )
public: static void gmp_randinit_default( gmp_randstate_t^ state )
static member gmp_randinit_default : state : gmp_randstate_t -> unit
Parameters
- state
- Type: Math.Gmp.Nativegmp_randstate_t
The state to initialize.

This will be a compromise between speed and randomness, and is recommended for applications with no special requirements. Currently this is gmp_randinit_mt.

// Create new random number generator state. gmp_randstate_t state = new gmp_randstate_t(); // Initialize state with default random number generator algorithm. gmp_lib.gmp_randinit_default(state); // Free all memory occupied by state. gmp_lib.gmp_randclear(state);
' Create new random number generator state. Dim state As New gmp_randstate_t() ' Initialize state with default random number generator algorithm. gmp_lib.gmp_randinit_default(state) ' Free all memory occupied by state. gmp_lib.gmp_randclear(state)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
