## Random::Next() method


返回一个小于 int32 最大值的非负随机数。

```cpp
virtual int32_t System::Random::Next()
```

## 另见

* Class [Random](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## Random::Next(int32_t) method


返回一个小于指定最大值的非负随机数。

```cpp
virtual int32_t System::Random::Next(int32_t maxValue)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| maxValue | int32_t | 该方法生成的值将小于此值 |

## 另见

* Class [Random](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## Random::Next(int32_t, int32_t) method


返回一个在指定范围内的随机数。

```cpp
virtual int32_t System::Random::Next(int32_t minValue, int32_t maxValue)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| minValue | int32_t | 该方法生成的值将大于此值 |
| maxValue | int32_t | 该方法生成的值将小于此值 |

## 另见

* Class [Random](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
