@iota-pico/core
Version:
IOTA Pico Framework Core
43 lines (23 loc) • 750 B
Markdown
[@iota-pico/core](../README.md) > [IRngService](../interfaces/irngservice.md)
# Interface: IRngService
Represents a service to perform random number generation.
*__interface__*:
## Hierarchy
**IRngService**
## Index
### Methods
* [generate](irngservice.md#generate)
---
## Methods
<a id="generate"></a>
### generate
▸ **generate**(length: *`number`*): `Uint8Array`
*Defined in [interfaces/IRngService.ts:11](https://github.com/iota-pico/core/tree/master/src/interfaces/IRngService.ts#L11*
Generate an array of random numbers.
**Parameters:**
| Param | Type | Description |
| ------ | ------ | ------ |
| length | `number` | The number of numbers to generate. |
**Returns:** `Uint8Array`
Array of random number generators.
___