function randomFloat(min, max) { return Math.random() * (max - min) + min; } function randomIntFrom0(max) { return Math.floor(Math.random() * max) } function randomInt(min, max) { return Math.floor(Math.random() * (max - min) + min) }