textmode.js / Textmodifier / randomStream
Method: randomStream()
ts
randomStream(name): TextmodeRandom;Get an independent deterministic random stream for a name.
Named streams are derived from the current root seed and stream name. Consuming values from one stream does not affect the main generator or other named streams.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Stream name. |
Returns
A deterministic random generator for the given stream name.