Tonight I wrote this die roller for Arduino with a LCD shield to show Eclipse Phase dice results (d10) and (d100) while watching a movie, the code is a gist, LCDDiceRoller.ino. To get true random, had to use the TrueRandom library.
Based on some analysis of the data using ruby descriptive_statistics library I wrote a simple data reader to test the TrueRandom data at singlestat.rb. The raw data is on ledlogic.net
$ ruby randomstats.rb {:number=>5301.0, :sum=>240566.0, :variance=>735.0908311889833, :standard_deviation=>27.112558551139788, :min=>"1", :max=>"99", :mean=>45.38124882097718, :mode=>"56", :median=>44.0, :range=>98.0, :q1=>22.0, :q2=>44.0, :q3=>64.0}
The values seem biased low.
The entropy library might be a better choice for true randomness.
No comments:
Post a Comment