# `GSRandomNumberGenerator`

*Class*

## Declaration

```swift
class GSRandomNumberGenerator
```

```objc
@interface GSRandomNumberGenerator : NSObject
```

```python
class GSRandomNumberGenerator(NSObject)
```

## Topics

### Instance Methods

- [`GSRandomNumberGenerator init`](/Core/GlyphsKit/GSRandomNumberGenerator/init) — Creates an insecure RNG with a pseudo-random seed.
- [`GSRandomNumberGenerator initWithSeed:`](/Core/GlyphsKit/GSRandomNumberGenerator/initWithSeed:) — Creates an insecure RNG with the given seed.
- [`GSRandomNumberGenerator nextBool`](/Core/GlyphsKit/GSRandomNumberGenerator/nextBool) — Returns a random Boolean and advances the random number generator.
- [`GSRandomNumberGenerator nextInt:`](/Core/GlyphsKit/GSRandomNumberGenerator/nextInt:) — Returns a unsigned integer in the range `[0, bound)` and advances the random number generator.
- [`GSRandomNumberGenerator resetWithSeed:`](/Core/GlyphsKit/GSRandomNumberGenerator/resetWithSeed:) — Resets the state of the RNG to the given seed.
- [`GSRandomNumberGenerator resetWithRandomSeed`](/Core/GlyphsKit/GSRandomNumberGenerator/resetWithRandomSeed) — Resets the state of the RNG to a pseudo-random seed.

### Type Methods

- [`GSRandomNumberGenerator seedForString:`](/Core/GlyphsKit/GSRandomNumberGenerator/seedForString:) — Produces a seed specific to the given string.

## Relationships

### Inherits From

- `NSObject`

