0 Members and 2 Guests are viewing this topic.
//create a completely random number int randomNumber = (int)(Math.random()*(tickets.count()-1));
I'm Much more smarter admin than whoever banned me.
Alright im going to finish my post now. So Xeadin has 8 tickets i have 1 and Henz has 1. First draw Xeadin has an 80% chance of winning. So When the computer draws Xeadin Will win. The next Draw there are only nine tickets and Xeadin has 7 of them. The Chance that xeadin will win is 77.7777777777777777777777777777777777777777777% So When the computer picks one xeadin will win again. and now for the third draw Xeadin will have a 75% chance of winning. So when the Computer draws Xeadin will win again. Now Xeadin has won all three picks. This is because the loto is based on probability and stats. If it was random it may be different. But because a computer is based on satats and probability it does not draw randomely. But this does not mean it is rigged. So yes the loto is not random but it is not rigged. so i hope that satisfies both sides.Hell ya science:)
"I griefed because my dog sat on my mouse and farted!"
Ok, let's set aside the algorithmic discussion for a minute because that's so WAY off from effecting the outcome of the lotto draw that it's not even worth mentioning. It IS random, and it IS fair, because each consecutive draw doesn't include the winning ticket from the last draw, and a whole new random draw is done. Plain and simple.So, those of you who aren't winning, just suck it up and make the odds better in your favor. Either find a four leaf clover, hang a horseshoe, or do something that'll improve your luck cause the odds of winning are only as good as the number of tickets you buy.
Quote from: ViperZeroOne on July 22, 2012, 01:52:34 amOk, let's set aside the algorithmic discussion for a minute because that's so WAY off from effecting the outcome of the lotto draw that it's not even worth mentioning. It IS random, and it IS fair, because each consecutive draw doesn't include the winning ticket from the last draw, and a whole new random draw is done. Plain and simple.So, those of you who aren't winning, just suck it up and make the odds better in your favor. Either find a four leaf clover, hang a horseshoe, or do something that'll improve your luck cause the odds of winning are only as good as the number of tickets you buy.viper it effects the outcome big time if that's the algorithm being used..... it means that you would be paying for a ticket that has a 0% chance to be drawn.... not a .00000001% chance, a 0% chance. it's tossing your money in the trash for false hope.
Quote from: tiggy26668 on July 22, 2012, 01:55:50 amQuote from: ViperZeroOne on July 22, 2012, 01:52:34 amOk, let's set aside the algorithmic discussion for a minute because that's so WAY off from effecting the outcome of the lotto draw that it's not even worth mentioning. It IS random, and it IS fair, because each consecutive draw doesn't include the winning ticket from the last draw, and a whole new random draw is done. Plain and simple.So, those of you who aren't winning, just suck it up and make the odds better in your favor. Either find a four leaf clover, hang a horseshoe, or do something that'll improve your luck cause the odds of winning are only as good as the number of tickets you buy.viper it effects the outcome big time if that's the algorithm being used..... it means that you would be paying for a ticket that has a 0% chance to be drawn.... not a .00000001% chance, a 0% chance. it's tossing your money in the trash for false hope....and has Opti come on here himself and said that's the algorithm being used? No. So what's the debate about?! He has come on and said that my explanation (WAY BACK) is the correct one. That each draw is completely random, and your odds of winning are based solely on the number of tickets in your hand. So once again, what's the debate about?
I hate to crush such a long winded post, but tiggy is completely wrong. Thats not how things work in computers - its stored in binary - not base 10.See: http://en.wikipedia.org/wiki/Floating_point#Floating-point_arithmetic_operationsIt's complicated stuff, don't worry too much about it.The numbers are generated using a linear congruential generator - java.Random. For this type of number generation it is adequate. see http://en.wikipedia.org/wiki/Linear_congruential_generatorhttp://docs.oracle.com/javase/1.4.2/docs/api/java/util/Random.html#nextInt(int)
For this type of number generation it is adequate.