Random Data
Generates random data
Processing
For every input row, the step invokes the specified pseudo-random generator functions and provides the generated values in the results.
Several configurable random data generators are available out of the box.
Settings
Name | Type | Description |
---|---|---|
Seed |
any |
The seed to use for random data generation. Given a fixed step configuration, the same seed value will produce the same results. When Evaluated for each input row |
Generators
Random data is produced by a set of functions called generators. Any function of the form (seed) -> any
qualifies as a generator. Given a seed value, it returns a corresponding pseudo-random value.
- Type
- Data type of the generated value. Generated values are implicitly cast to this type.
- Name
- Name of the generated value.
Generated values are available to dependent generators asgenerated.<name>
Generated values are available in step results asresults.generated[<name>]
. - Generator
- Generator function of the form
(seed) -> any
that generates a pseudo-random value.
Use one of the generator functions available through the widget morph menu or supply a custom function.
Results
Name | Type | Description |
---|---|---|
generated |
dict | A dict of all generated values indexed by name. |