Auto pushed
This commit is contained in:
commit
999a3d9348
19
index.js
Normal file
19
index.js
Normal 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())
|
Loading…
Reference in New Issue
Block a user