Skip to content

Instantly share code, notes, and snippets.

View xolox's full-sized avatar

Peter Odding xolox

View GitHub Profile
@xolox
xolox / Output
Created August 18, 2009 18:56
Test how much sorting of input influences weighted random choice
peter@laptop:~$ lua choice.lua 10000
sorted_reverse:
A: 49.99%
B: 24.2%
C: 12.96%
D: 6.17%
E: 2.5%
F: 1.96%
G: 2.22%
shuffled: