math.random

Run Settings
LanguageJavaScript
Language Version
Run Command
let rendom = Math.random(); if(rendom < 0.22) { console.log(1); } else if (rendom < 0.33 && rendom < 0.44) { console.log(2); } else if(rendom < 0.55 && rendom < 0.66) { console.log(3); } else if(rendom < 0.77 && rendom < 0.88) { console.log(4); } else { console.log(5); }
Editor Settings
Theme
Key bindings
Full width
Lines