Apparently I now qualify for a job at SE. Shouldn't be too different in whatever language XIV is written in.Code:public class SmallIndieCompany { public static void main(String[] args) { int participants = Integer.parseInt(args[0]); int winner = (int)(Math.random()*participants+1); if (winner > participants) { winner = participants; } System.out.println(winner); } }
The wording is confusing.
Does that mean someone won and it just doesnt show, or that no one won still?
From the complaints about "I was the only person and still lost" I assume the latter.
This isn't possible, because some houses are having 0 as the winning ticket, so instead every lottery has 0 1 2 3 4 5 6, and some are drawing 0, this is how people who are the ONLY people lotting are losing; they've gone from a 100% chance to 50% chance, if I had to wager a guess the system would "create" a number of entries based on the numbers entered, and upon drawing it would grab the array field and pick from there. Unfortunately, 0 people CAN enter, and something small was missed to create a small routine to accept that if number of entries not == 0 then array(n).
As to those who entered with others, and someone else won, odds were still equal for everyone, there was just also an equal chance of a void ticket. This sucks, and any perceived "fair" solution won't be fair to someone involved. Best in this situation to accept that if the void didn't win, the results still respected the standard chances applied. (if 5 people entered, instead of 20% chance each you all had 16.666r chance, with the void also having that chance). It sucks, but if your number was drawn, it was drawn, it couldn't have drawn your number and increased it by 1, because people still won with the highest number in the lot. For it to be a simple +1 check, it would mean that the routine would not only be able to add 1 to all rolls, but also loop. Possible, but at least in this situation, not removing 0 from an array involving any number higher than 0 seems more likely. We'll see what the devs follow up with.
The most sensible explanation is that it's a silly programming error where they included the default "0 ticket" in the lottery by accident (which would be the winner if no one entered) so instead of there only being one entrant, there were actually 2: Ticket 0 and Ticket 1, so the actual chance of winning was 50%.
I thought I had legit lost and accepted the refund of my deposit. So I suppose that's going to disqualify me now if they re-examine the database and re-run the lottery for the plot I bid on. RIP.
hi, you looking for something : )
|
![]() |
![]() |
![]() |
|
Cookie Policy
This website uses cookies. If you do not wish us to set cookies on your device, please do not use the website. Please read the Square Enix cookies policy for more information. Your use of the website is also subject to the terms in the Square Enix website terms of use and privacy policy and by using the website you are accepting those terms. The Square Enix terms of use, privacy policy and cookies policy can also be found through links at the bottom of the page.