Post
Topic
Board Gambling
Re: ★ BTC-RAFFLE.COM ★▐ Provably Fair ▐ Referral System ▐ Player VS Player ▐
by
dooglus
on 08/01/2016, 07:34:10 UTC
You are incorrect the tickets are not "sequentially in the order' You could be the first player or the last player and get ticket number 1-1000 there is 100% no way for someone to pick there numbers its all 100% random.

I thought you might like to know that the ticket ordering isn't at all random.

Tickets are sorted into descending order of price, and then ascending order of last purchase time.

Here's the code that does it client-side, from raffle.js:

Code:
        self.Participants.sort(function (p1, p2) {
            if (Number(p1.amount).toFixed(8) == Number(p2.amount).toFixed(8))
                return p1.betTime > p2.betTime; //ascending
            return Number(p1.amount) < Number(p2.amount); //decending
        });