Auto pushed

master
nannal 4 years ago
commit 999a3d9348

@ -0,0 +1,19 @@
var games = []
do {var ticket = Math.floor(Math.random() * (+20 - +1) + +1)
var seats = Math.floor(Math.random() * (+15 - +5) + +5)
var pot = seats * ticket
var round = Math.floor(pot/5)*5
var take = pot - round
var game=[seats, ticket, pot, round, take]
if (true) {
if (games.indexOf(game) === -1) {games.push(game)}
}
}
while ( games.length < 1 )
console.log(games.sort())
Loading…
Cancel
Save