GLib.Rand.copy

### Method

# GLib Randcopy

since: 2.4

#### Declaration

    GRand*
    g_rand_copy (
      GRand* rand_
    )

#### Description

Copies a `GRand` into a new one with the same exact state as before. This way you can take a snapshot of the random number generator for replaying later.

Available since: 2.4

#### Return value

Type: `GRand`

The new `GRand`.

The caller of the method takes ownership of the data, and is responsible for freeing it.