fileability/mutton — Issue #7: Randomness, shuffling
Author: fileability
Created: 2012-03-10 01:40:44+00:00
State: open
Labels: enhancement

Functions a la Python's random module.

* randint: Getting a random integer within a range
* randfloat: Getting a random floating-point within a range
* shuffle: Shuffling an iterable
* sample: Sampling a iterable to get N random members.
* any: Returning a random element from an iterable.
* randseed: Seeding the random number generator.

Not sure which RNG to use. `/dev/random`? `random()`? Probably `arc4random()` since it can be seeded, and has good properties.