Minecraft Name:Thecreator767
Suggestion:make a lottery more like the real world and make tickets cost 100 and 50 goes into the jackpot. I would like to see this because it adds more epicness to our already epic economy
Reason:It would be nice to have a more realistic lotto that draws every day, 3 days, week, month, etc...
Any Other Information:nope and my Javascript isnt that strong so I couldn`t make it so that the numbers don`t duplicate :p if the numbers duplicate then just press Pick Numbers again
Link To This Plugin:
A lotto that people can actually win below......Code:<html> <Head> <Title>Lottery</Title> <Font Color="#181818"/> <script type="text/javascript"> function lotto(){ var randomNumber=Math.floor(Math.random()*59); randomNumber=randomNumber+1; document.getElementById("lot1").innerHTML=randomNumber; var randomNumber=Math.floor(Math.random()*59); randomNumber=randomNumber+1; document.getElementById("lot2").innerHTML=randomNumber; var randomNumber=Math.floor(Math.random()*59); randomNumber=randomNumber+1; document.getElementById("lot3").innerHTML=randomNumber; var randomNumber=Math.floor(Math.random()*59); randomNumber=randomNumber+1; document.getElementById("lot4").innerHTML=randomNumber; var randomNumber=Math.floor(Math.random()*59); randomNumber=randomNumber+1; document.getElementById("lot5").innerHTML=randomNumber; var randomNumber=Math.floor(Math.random()*59); randomNumber=randomNumber+1; document.getElementById("POWER").innerHTML=randomNumber; } </script> </head> <Body> <p align="Left"> <h1>Lottery</h1> <button type="button" onclick="lotto()">Pick Numbers</button> <p id="lot1">Number 1</p> <p id="lot2">Number 2</p> <p id="lot3">Number 3</p> <p id="lot4">Number 4</p> <p id="lot5">Number 5</p> <h2><strong><font color="#FF0000">Special</font></strong></h2> <p id="POWER">Special Number</p> </Body> </html>
Code:<html> <Head> <Title>Lottery</Title> <Font Color="#181818"/> <script type="text/javascript"> function lotto(){ var randomNumber=Math.floor(Math.random()*59); randomNumber=randomNumber+1; document.getElementById("lot1").innerHTML=randomNumber; var randomNumber=Math.floor(Math.random()*59); randomNumber=randomNumber+1; document.getElementById("lot2").innerHTML=randomNumber; var randomNumber=Math.floor(Math.random()*59); randomNumber=randomNumber+1; document.getElementById("lot3").innerHTML=randomNumber; } </script> </head> <Body> <p align="Left"> <h1>Lottery</h1> <button type="button" onclick="lotto()">Pick Numbers</button> <p id="lot1">Number 1</p> <p id="lot2">Number 2</p> <p id="lot3">Number 3</p> </Body> </html>
Thread Tools
Thread Tools
-
Thecreator767 BuilderBuilder ⛰️ Ex-President ⚒️⚒️
-
kukelekuuk C͕̹̲̽ͪ͐ͩ̔L̜̦̝͈ͦ̿̾̿ḘA̻̗̤̳̐ͭ̆̿̃̑ͭN̊̓͑̇ͯBuilder ⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Premium UpgradeCode:
<html> <Head> <Title>Lottery</Title> <Font Color="#181818"/> <script type="text/javascript"> function lotto(){ var randomNumber1 = Math.ceil(Math.random()*50); document.getElementById("lot1").innerHTML=randomNumber1; do { var randomNumber2 = Math.ceil(Math.random()*50); } while (randomNumber1 == randomNumber2); document.getElementById("lot2").innerHTML=randomNumber2; do { var randomNumber3=Math.ceil(Math.random()*50); } while (randomNumber3 == randomNumber1 || randomNumber2 == randomNumber3); document.getElementById("lot3").innerHTML=randomNumber3; } </script> </head> <Body> <p align="Left"> <h1>Lottery</h1> <button type="button" onclick="lotto()">Pick Numbers</button> <p id="lot1">Number 1</p> <p id="lot2">Number 2</p> <p id="lot3">Number 3</p> </Body> </html>
Also, I highly doubt that this will happen, it's just unnecessary work. -
Thecreator767 BuilderBuilder ⛰️ Ex-President ⚒️⚒️
Thanks kuke :D
Also Ik it probably wont be accepted but it would be cool to have a real lotto and not one that people can farm money off of. -
Raining_TNT BuilderBuilder ⛰️ Ex-Resident ⚒️
i think the lotto we have now is just fine, i'd rather like
that Andrewkm, Hobbits and all of the other devolpers used their time on something else :)
Raining_TNT -
Thecreator767 BuilderBuilder ⛰️ Ex-President ⚒️⚒️
-
grahamster00 BuilderBuilder ⛰️ Ex-President ⚒️⚒️
Hm. This would get a lot more people in the lotto but we'd have massive lottos because just by voting you could buy 10 ticks. Think of all the millionaires that would buy ten thousands of tickets.
Just some input. -
Thecreator767 BuilderBuilder ⛰️ Ex-President ⚒️⚒️
-
MinerOFcrafts102 BuilderBuilder ⛰️ Ex-Resident ⚒️
Yea he is correct but we could have a ticket limit and it should be random to dont forget that but i think atleast 2 times a day everyday.
-
Thecreator767 BuilderBuilder ⛰️ Ex-President ⚒️⚒️