GitHub PushEvent at 2014-11-03 02:10:26
Repository: CargoSimulator2015
Actor: daniel-ault
Payload: {"shas":[["2d85f170a1e81d10dab702f46e4f4c485d2b5c2e","75caf6d4f241fbc0e736e414b4138e87937e24bf@memphis.edu","Modify random_integer to take an actual probability distribution\n\nThe probability distribution that random_integer wants given is not\nintuitive.  What we want to give to it is {0.25, 0.25, 0.5}.  This means that\nthere is a 25% chance it will return 1, a 25% chance it will return 2, and a\n50% chance it will return 3.  Instead, what it wanted was {0.25, 0.5, 1},\nwhich is a lot less intuitive.\n\nOriginally, it generated a random number, and looped through prob_distrib.\nIt looped through prob_distrib until the random number was greater than the\nvalue at the current index of prob_distrib.  Now, after checking the value,\nit subtracts the current value of prob_distrib from the random number,\nallowing the programmer to input an actual probability distribution.","Daniel Ault",true]],"size":1,"ref":"refs/heads/master","head":"2d85f170a1e81d10dab702f46e4f4c485d2b5c2e"}