gmp_libgmp_randinit_default Method |
Namespace: Math.Gmp.Native
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
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.