gmp_libgmp_randinit_set Method |
Namespace: Math.Gmp.Native
public static void gmp_randinit_set( gmp_randstate_t rop, gmp_randstate_t op )
Public Shared Sub gmp_randinit_set ( rop As gmp_randstate_t, op As gmp_randstate_t )
public: static void gmp_randinit_set( gmp_randstate_t^ rop, gmp_randstate_t^ op )
static member gmp_randinit_set : rop : gmp_randstate_t * op : gmp_randstate_t -> unit
// Create new random number generator state, and initialize state with the Mersenne Twister algorithm. gmp_randstate_t op = new gmp_randstate_t(); gmp_lib.gmp_randinit_mt(op); // Create new random number generator state, and initialize it with the state op. gmp_randstate_t rop = new gmp_randstate_t(); gmp_lib.gmp_randinit_set(rop, op); // Free all memory occupied by op and rop. gmp_lib.gmp_randclear(op); gmp_lib.gmp_randclear(rop);
' Create new random number generator state, and initialize state with the Mersenne Twister algorithm. Dim op As New gmp_randstate_t() gmp_lib.gmp_randinit_mt(op) ' Create new random number generator state, and initialize it with the state op. Dim rop As New gmp_randstate_t() gmp_lib.gmp_randinit_set(rop, op) ' Free all memory occupied by op and rop. gmp_lib.gmp_randclear(op) gmp_lib.gmp_randclear(rop)
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.