0

Random Integer

by
Published Jun 6, 2022
Script helper Verified

The script

Submitted by hugo989 Typescript (fetch-only)
Verified 6 days ago
1
//native
2

3
export async function main(min = 0, max = 100) {
4
  return Math.floor(Math.random() * (max - min + 1)) + min;
5
}
6

Other submissions
  • Submitted by jaller94 Deno
    Created 398 days ago
    1
    export async function main(min = 0, max = 100) {
    2
      return Math.floor(Math.random() * (max - min + 1)) + min;
    3
    }
    4