This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function random(min, max) { // min and max included | |
return Math.random() * (max - min + 1) + min; | |
} | |
const bet = 1 | |
const rtp = 0.99 | |
const max = 100 | |
function roll(threshold, under) { | |
const dice = random(0, max) |