From 999a3d93488ff222077529644952f21571de31f9 Mon Sep 17 00:00:00 2001 From: nannal Date: Sat, 25 Jan 2020 14:07:46 +0200 Subject: [PATCH] Auto pushed --- index.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..d16178d --- /dev/null +++ b/index.js @@ -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())