@dbos-inc/communicator-random
v1.28.6
Published
DBOS library for wrapping random number generation in steps
Downloads
1,296
Readme
DBOS Random Step
This is a DBOS step for generating random numbers.
The reason that random number generation should be wrapped in a @Step
is so that replayed workflows get the recorded value and therefore have the same behavior as the original.
Available Functions
random()
random
is a wrapper for Math.random()
and similarly produces a number
in the range from 0 to 1.
Next Steps
- For a detailed DBOS Transact tutorial, check out our programming quickstart.
- To learn how to deploy your application to DBOS Cloud, visit our cloud quickstart
- To learn more about DBOS, take a look at our documentation or our source code.