# openRandom

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

Open one deterministic random stream.

```ds title="openRandom"
export declare function openRandom(world: WorldHandle, seed?: &'a readonly RandomSeed | undefined): Result<RandomHandle, HostError>
```

[language/library/src/runtime/random.ds:24:27](https://github.com/destack-sh/destack/blob/main/language/library/src/runtime/random.ds#L24-L27)
