# fillRandom

`import { fillRandom } from "destack:runtime";`

Fill one buffer from a deterministic random stream.

```ds title="fillRandom"
export declare function fillRandom(random: RandomHandle, buffer: &'a [uint8]): Result<void, HostError>
```

[language/library/src/runtime/random.ds:60](https://github.com/destack-sh/destack/blob/main/language/library/src/runtime/random.ds#L60)
