-
Notifications
You must be signed in to change notification settings - Fork 0
random
github-actions[bot] edited this page Sep 30, 2024
·
16 revisions
the random section of stews is a built in random class with things like random number generators and choosers
it works with most types like Stews, Soups, Noodles, Arrays, Objects, Sets, Maps, etc
type: AeplClass
arguments:
- ?binder
Any
:
thing that it's binded to if an object is not given for things like choice or index
const { random } = require('stews');
random.int(1, 5);
random.choice([ "a", "b", "c" ]);