Auto pushed

This commit is contained in:
nannal 2020-01-25 14:07:46 +02:00
commit 999a3d9348

19
index.js Normal file
View File

@ -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())