# `GSRandomNumberGenerator nextInt:`

*Instance Method*

Returns a unsigned integer in the range `[0, bound)` and advances the random number generator.

## Declaration

```swift
func nextInt(_ bound: UInt32) -> UInt32
```

```objc
- (uint32_t) nextInt:(uint32_t) bound;
```

```python
nextInt_(bound: int) -> int
```

## Parameters

- `bound` — Upper limit (exclusive).

