![]() |
|
05-15-2015
|
46 |
|
Registered User
Join Date: Jul 2014
Posts: 783
|
Don't know about Graal's PRNG, but plenty of PRNGs are predictable. That's why there is a P (for pseudo, not predictable). Even with truly random selection, there is a potential for certain people to be selected more often over a limited period of time. Since you brought up that there's a repeating loop, I'm not entirely confident that the queue is truly random.
|
|
05-15-2015
|
47 |
|
Registered Old Person
Join Date: Sep 2013
Location: Graal City Restaurant
Posts: 4,742
|
It wouldn't be random. Folks closer to the start of the list searched by the 'loop' would have a slightly greater chance at getting in. Slightly. I have gotten into and won 2 events in the same day before. Non-queue ones only, though. The queue is a harsh mistress... and often the hats she provides are already ones that I have. Speaking of which, I have gotten into events run by queue while already having the hat that is on offer. And btw, thanks for cliff climber, Dusty. Realized how well it is designed and randomized the other day, unlike bush race (for example). |
|
05-15-2015
|
48 | ||||
|
Should be fixed.
Join Date: Aug 2011
Posts: 6,359
|
PHP Code:
It's not really randomized, save for the falling of the rocks and such. Would be really cool to have actual random layouts and such but sadly that would be very difficult to pull off.
|
||||
|
05-15-2015
|
49 | |
|
Banned
Join Date: Sep 2014
Location: Australia
Posts: 3,255
|
|
|
|
05-15-2015
|
50 | |
|
Registered Old Person
Join Date: Sep 2013
Location: Graal City Restaurant
Posts: 4,742
|
|
|
|
05-15-2015
|
51 | |
|
Earning Unix dem stacks
Join Date: Apr 2013
Location: In a fox hole somewhere
Posts: 7,391
|
warpers were honestly so much better, aside from the lag. |
|
|
05-15-2015
|
52 | |
|
Registered User
Join Date: Jan 2014
Location: Florida
Posts: 765
|
|
|
|
05-15-2015
|
53 |
|
Earning Unix dem stacks
Join Date: Apr 2013
Location: In a fox hole somewhere
Posts: 7,391
|
Once they get the right answer then can just clear pms lol
|
|
05-15-2015
|
54 |
|
Registered User
Join Date: Jan 2014
Location: Florida
Posts: 765
|
|
|
05-15-2015
|
55 | |
|
Registered User
Join Date: Jul 2014
Posts: 783
|
My GScript skills are a bit rusty, but here's an attempt instead of doing it in some other language (may not be correct): PHP Code:
My Javascript interpretation of that: PHP Code:
Another javascript version I just wrote of the weighted reservoir sampler that wouldn't require keeping track of all of the players that have entered the queue (which was the point of reservoir samplers, but then even with a known pool they were more efficient than alternatives): Edit: Added documentation to where things line up with the algorithm description in the journal article. You can see I didn't do things in the same order as described, but you should be able to see where I saved some code and added small efficiencies by reordering it. PHP Code:
Last edited by deadowl; 05-15-2015 at 09:46 PM.
Reason: Added weighted reservoir sampling code, and now adding more, and now adding documentation linking it to the algorithm paper
|
|
|
05-15-2015
|
56 |
|
Registered User
Join Date: Jul 2014
Posts: 783
|
Dusty! Duusty!! DUUuUUUUUUSSSTYyyyYYY!!!! WE HAVE THE TECHNOLOGY!!!! You don't even have to keep track of who opted into the queue if you use this! So at least with the last piece of code, I've run two tests: 1. A sample of 100 numbers from a set containing the numbers 0-9999 with equal weights (should be about uniformally distributed) PHP Code:
This is an Excel chart from the same run to show the same distribution in sorted order: 2. A sample of 100 numbers from a set containing the numbers 0-9999 where odds have a weight of two and evens have a weight of one (should have around twice as many odds as there are evens). PHP Code:
|
|
05-28-2015
|
57 |
|
Registered User
Join Date: Jul 2014
Posts: 783
|
I still haven't heard any feedback on this particular algorithm.
|
|
05-28-2015
|
58 |
|
Registered User
Join Date: Dec 2014
Location: Sweden
Posts: 570
|
uhm why can't we just host trivia? gives everyone a fair chance |
|
05-28-2015
|
59 |
|
Python
Join Date: Aug 2013
Posts: 1,894
|
Not a single soul can go against the work that deadowl puts in for this game, god damn!
|
|
05-28-2015
|
60 |
|
Registered User
Join Date: Jul 2014
Posts: 783
|
|