Skip to content

random.number()

github-actions[bot] edited this page Sep 30, 2024 · 2 revisions

chooses a random number inbetween two numbers
type: Function

alt names:

  • randint()
  • int()

arguments:

  • min Number
    minimum number that it can get
  • max Number
    maximum number that it can get

const { random } = require('stews');

console.log(random.number(1, 5));
4


Stews Docs 🍲

🛈 Stew 🛈 Soup
🛈 Noodle 🛈 random

Clone this wiki locally