## Random::NextBytes method


Fills the elements of the specified array of bytes with random numbers.

```cpp
virtual void System::Random::NextBytes(const ArrayPtr<uint8_t> &buffer)
```


| Parameter | Type | Description |
| --- | --- | --- |
| buffer | const ArrayPtr\<uint8_t\>\& | The array to fill |

## See Also

* Typedef [ArrayPtr](../../arrayptr/)
* Class [Random](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
