Haxe implementation and demonstration of Michael Vose's variation on Alias tables for generating random numbers with an arbitrary distribution