## Random::Next() method


Returns a nonnegative random number less then int32 max value.

```cpp
virtual int32_t System::Random::Next()
```

## See Also

* Class [Random](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Random::Next(int32_t) method


Returns a nonnegative random number less than the specified maximum.

```cpp
virtual int32_t System::Random::Next(int32_t maxValue)
```


| Parameter | Type | Description |
| --- | --- | --- |
| maxValue | int32_t | Values generated by the method will be less than this value |

## See Also

* Class [Random](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Random::Next(int32_t, int32_t) method


Returns a random number within the specified range.

```cpp
virtual int32_t System::Random::Next(int32_t minValue, int32_t maxValue)
```


| Parameter | Type | Description |
| --- | --- | --- |
| minValue | int32_t | Values generated by the method will be greater than this value |
| maxValue | int32_t | Values generated by the method will be less than this value |

## See Also

* Class [Random](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
