# closeRandom

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

Close one deterministic random stream.

```ds title="closeRandom"
export declare function closeRandom(random: RandomHandle): Result<void, HostError>
```

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