back to article Norwegian lotto mistakenly told thousands they were filthy rich after math error

Thousands of Norwegians mistakenly thought they'd won life-changing sums in last week's Eurojackpot after a manual coding slip at state-owned operator Norsk Tipping. Eurojackpot, a pan-European lottery launched in 2012, holds two draws per week, and its jackpots start at €10 million (about $12 million) with a rollover cap of € …

  1. Jou (Mxyzptlk) Silver badge

    AI Math

    Am I right or am I right?

    1. elsergiovolador Silver badge

      Re: AI Math

      Yes.

    2. Dan 55 Silver badge

      Re: AI Math

      Not this time. They were following a manual process.

    3. LBJsPNS Silver badge

      Re: AI Math

      Why not both?

  2. Pete Sdev
    FAIL

    Staging?

    Have they not heard of stageing environments, where, you know, you can test changes before they go in to production?

    At least the CEO had the decency to fall upon their sword.

    1. Jou (Mxyzptlk) Silver badge

      Re: Staging?

      Everybody has a development, staging, test and production environment. Sometimes production is separate.

      1. elsergiovolador Silver badge

        Re: Staging?

        So you don't edit .php files on production server via ftp?

        1. Jou (Mxyzptlk) Silver badge

          Re: Staging?

          What is edit? What is ftp? We have a few jumper boards. But only after a coworker got a shock and burn programming the live system. Much better than the mechanical barrels we used two years ago which did cost a few fingers. Luckily none of mine...

        2. Anonymous Coward Silver badge
          Linux

          Re: Staging?

          No, SSH in as root. Obviously.

          1. Korev Silver badge
            Thumb Up

            Re: Staging?

            Well, sorting permissions is hard and this sidesteps all those pesky errors

        3. Pete Sdev
          Joke

          Re: Staging?

          So you don't edit .php files on production server via ftp?

          Not since 1999 ;-)

    2. EricB123 Silver badge

      Re: Staging?

      Too bad this didn't happen in America. At the very worst, the CEO would be given a tax free 30 million dollar "golden parachute".

  3. DS999 Silver badge

    Manual error

    Multiplied by 100. But the article says the amounts were inflated by 10,000x.

    So did they erroneously manually multiply by 100 TWICE, or was the first multiplication by design and the error was a later step of dividing by 100 was done as another multiply?

    1. Jou (Mxyzptlk) Silver badge

      Re: Manual error

      Sound like a mix up of "divide by 0.01" instead of "multiply with 0.01". They probably still use tabletop calculators with paper feed. Or maybe the should have use that.

      1. MiguelC Silver badge

        Re: Manual error

        A trading system I worked on to integrate with our internal systems was connected to the London Stock Exchange. In testing everything was just fine and dandy.

        In production a *small* glitch occurred - it received prices in GBX (Pence) and though they were in GBP (Pounds). Critically, the balance validation worked correctly, seeing GBX prices as it should, but when trades were collected or paid, it had already passed that step so just blindly transferred a sum that was 100 times more than it should have been. If you've ever dealt with unhappy stock market traders, you might guess how miserable they made everyone for a while. As bad as it was, my team got off not too badly, but in the order manager system team some heads ended up rolling.

    2. Anonymous Coward
      Anonymous Coward

      Re: Manual error

      The were to divide some base amount, say 1,000U, by 100 to get how many kr to award (here then: 10kr) but multiplied by 100 instead, announcing 100,000kr ... (that ends up being 10,000x of upcoming disappointment for the would-have-been BIG winners)

      1. J.G.Harston Silver badge

        Re: Manual error

        That's what happened to me when a nephew sent me some stuff from Hong Kong. It was labelled something like HK$50, and instead of dividing by 13 the UK customs multiplied it by 13, resulting in a 13*13=169-fold error, and insisted I pay import duty on a "value" of £650 instead of less than a fiver.

    3. katrinab Silver badge
      Alert

      Re: Manual error

      They multiplied by 100 instead of dividing by 100.

    4. deltics2

      Re: Manual error

      There's some arithmetic detail hidden in the words...

      "Eurocents to Norwegian kroner"

      Euro cents, not Euros, so you must divide by 100 if applying a Euro to Kroner exchange rate.

      Failing to divide by 100 is equivalent to multiplying by 100.

      Multiplying by 100 when division was intended "squares" the error: a punter that won 1.00 EUR is going to be told they won 100 EUR which, x100, means they were told they won 10,000 EUR.

      What I find most puzzling is why a lottery operator relies on a manual process for this?!

    5. HelpfulJohn

      Re: Manual error

      "Multiplied by 100. But the article says the amounts were inflated by 10,000x."

      Yes, that is correct.

      Instead of *dividing* by 100, they did not divide at all, that makes the winnings 100 times larger than they should have been.

      Then they compounded this error by *multiplying* by 100, which makes the winnings 100 X 100 times as large as they should have been.

      100 X 100 = ten thousand. 10,000 times bigger than it should have been.

      The maths works fine.

  4. Pascal Monett Silver badge
    Thumb Down

    "To them I can only say: Sorry!"

    No buddy, you're going to be a lot sorrier when a class-action lawsuit (or whatever the Norwegian equivalent is) lands in front of a judge who will undoubtedly decide that you are to pay for the costs of annulation of contracts that these "winners" contracted in good faith.

    1. doublelayer Silver badge

      Re: "To them I can only say: Sorry!"

      Nice try, but that's not how that works. Reporting errors that get fixed in hours don't get upheld in court or have penalties assigned unless you can very convincingly prove that someone deliberately did it. The contracts that lottery gamblers signed would not say "whatever the computer says, you get paid", but probably do have legally required figures for how the prizes are calculated which would prove the announced figures wrong. By the way, it also wouldn't work that way if the reported figures were dramatically lower than they should have been. The company wouldn't be able to pay the reported amounts and collect the difference. The only way a court would care is if the error wasn't corrected, and what they would do is mandate that the company correct their error and deal with any payment differences involved. Since the error was corrected before payments were dispersed, that's not going to happen either.

      1. CorwinX Bronze badge

        Re: "To them I can only say: Sorry!"

        Yeah, sounds harsh, but if the widgets didn't wait for/check the money was actually deposited in their bank accounts then it sucks to be them.

        The company may get a slap on the wrist but doubt there'll be compensation unless the company does it voluntarily.

      2. David Hicklin Silver badge

        Re: "To them I can only say: Sorry!"

        Totally agree, you should *never* act on anything like this until the money is safely confirmed as being yours, and even then I would hold for a while in case it was a mistake. If someone jumped the gun then fool them.

    2. David Brown 2

      Re: "To them I can only say: Sorry!"

      This is Norway we are talking about, not the USA. People got annoyed, but no one will be suing anyone.

      The head of the lottery company has resigned, and there will likely be some regulatory rules imposed (such as mandatory testing!), and possibly corporate fines. There have been a few cock-ups by Norsk Tipping in recent times, so a change of leadership makes sense.

  5. Jason Bloomberg Silver badge

    The joy of being fat fingered

    Paying a multi-hundred pound bill at a UK Post Office in cash, I only realised the receipt showed it as hundreds of pence when I got home.

    That was an overnight worry as to how I would ever prove it but, as I had hoped, their end of day audit had flagged the discrepancy between cash in tills and expected balances so they were already prepared when I arrived, They were rather sheepish and non-communicative but got it sorted out efficiently. Mistakes happen and I was rather sanguine and sympathetic about it; my righteous indignation and raised voice is reserved for those who aren't so cooperative in resolving issues.

    Looking back, knowing what I now know of Horizon; I suspect they may even have been crapping themselves more than I was.

    And, yes, I am more rigorous in checking receipts when I am handed them. Tomorrow's instalment; why you should always request a receipt from the self-service till.

    1. Andy Non Silver badge

      Re: The joy of being fat fingered

      I once bought a £4 plant from a garden centre, only to discover later they'd charged my card £400. They did swiftly correct the mistake though, thankfully.

      1. David 132 Silver badge

        Re: The joy of being fat fingered

        A similar problem arises here Stateside at every petrol pump - if paying by credit card, one has to first key in the amount to pre-authorize. So, for example, if you think you're going to need <= $40 worth of fuel, you'd key in 40.

        Except that every pump I've seen interprets the input as cents not dollars, so you actually need to enter... 4000.

        There were occasions in the past before I was wise to this that I embarrassingly authorized only 40 cents or so to be taken from my card; I fear that if I ever encounter a pump that does it a sensible way (why would you ever need to authorize down to the cents level?) I'm going to wonder why a hold of $4000 has been placed on my card!

        1. IGotOut Silver badge

          Re: The joy of being fat fingered

          Wow...that's just, well, stupid and backwards

          UK pumps preauthorise £99 without you entering anything

          . Then the proper amount is deducted at the end. It has screwed up occasionally, but 99.9999% of the time.

          Or is this a pay at kiosk rather than pay pay pump?

        2. LBJsPNS Silver badge

          Re: The joy of being fat fingered

          Every self service pump I've used on the Left Coast simply requires you to press enter to fill your tank. Where are you getting gas? I'm sorry, where do you purchase your petrol?

  6. Anonymous Coward
    Anonymous Coward

    The Norwegian Gambling Authority proposed a fine

    Frankly, they deserve the full wrath of the Fjord Prefect.

  7. spold Silver badge

    Probably...

    ...repurposed an old government system written in Cobol 60 - so difficult to get people with advanced programming skills that can update those things these days... (probably changed an INT4 to Floating Point or something).

    1. that one in the corner Silver badge

      Re: Probably...

      > old government system written in Cobol 60

      Getting muddled with cobalt-60?

      >> Many logical flaws were found in COBOL 60, leading General Electric's Charles Katz to warn that it could not be interpreted unambiguously

      Usable COBOL, that might be found in a government system, appeared a few years later.

      Trying to use COBOL 60 would have had worse fallout than cobalt-60 [1]

      [1] now trying to think where we'd find a sunken collection of old LISP code, clean and pure, uncontaminated by COBOL 60: looking for the Scapa Flow of coding.

  8. Anonymous Coward
    Anonymous Coward

    Seems there's a bit more to it

    "conversion process from Eurocents to Norwegian kroner multiplied amounts by 100 instead of dividing them."

    I would guess this pan EU lottery uses EUR (€) but with Norway's peculiar relationship with the EU still retains the Krone (NOK) (which I presume means crown) and thus a floating EUR/NOK exchange rate. Roughly €1.00 ~ NOK 11.90.

    The conversion I assume would be fixed at some time prior to the draw using some Forex derivative but would likely be entered manually which is where the error might have occurred.

    My guess is the payouts were in € cents which would be divided by 100 and multiplied by 11.90 [¢->€, €->NOK] or reverse order [EU ¢->NO ore, NO ore -> NOK].

    I can imagine that historically the conversion was to the smallest unit of the currency eg cent or pence and the divisor wouldn't always be 100.00 in pre decimal currencies eg between USD and £sd it would be 240. Ruritanian 1 Taler = 273.25 RUR farthings. Hence the required manual entry.

    Classic failure to automate cock-up.

    † Brexiteers might recall "Norway or nothing", others certain the latter prevailed.

  9. Potty Professor
    Facepalm

    EuroMillions

    I've been telling EuroMillions what the numbers should be for years now, but they STILL keep getting it wrong

  10. a20axf

    Winners jumping the gun?

    Surely any sensible person would have waited until the money was paid into their accounts before spending excessively??

    The PFY's been fiddling with the beancounter database again. The BOFH needs to remind him who's boss with the cattleprod again.

    1. HelpfulJohn

      Re: Winners jumping the gun?

      "Surely any sensible person would have waited until the money was paid into their accounts before spending excessively??"

      Well, I, for one, surely would. Then, as soon as I saw my Current Account credited, I'd move the funds into a Savings Account, just to hinder them clawing it back.

      It wouldn't prevent a clawback, if one were supported by some good reason, but it would annoy them. And, if the winnings were large enough, I might even make a few quid out of it in interest. :)

  11. fluffymitten

    Incorrect rollover cap

    The rollover cap on Euromillions is EUR 250m, not the paltry EUR 120m as reported.

    1. phils

      Re: Incorrect rollover cap

      Euromillions is not the same lottery as Eurojackpot.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like