Skip to content
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" ]);


Stews Docs 🍲

🛈 Stew 🛈 Soup
🛈 Noodle 🛈 random

Clone this wiki locally