serg-srri-umass / TP-data-games

Middle School/Statistics oriented data games for the Data Games Project
http://srri.umass.edu/datagames
4 stars 5 forks source link

Random Number library cleanup #200

Open cdmiller opened 10 years ago

cdmiller commented 10 years ago

I just noticed that Russ added randomRange() to Round.as in Inference Games -- good!. This reminds me that I have wanted to clean up our random number generation so it is clean and simple. I'd like to move this routine into a math library and perhaps merge it or put it along side the current ParkerMiller library, which I think is not the best name. Then we can simplify all the places that do Math.random() with various transforms like an integer range.

Anyone with a proposal on how to do this, please review with me before proceeding.

cdmiller commented 10 years ago

Mike added this code: https://github.com/serg-srri-umass/TP-data-games/commit/7983c4d9d358ffa323ba54ec85b757b9ce2a2ed4

Now we need to integrate it into our games.

Low priority at this point.