ocaml-batteries-team/batteries-included — pull request #271 by bergsoe (2012-06-06 10:46:57+00:00)
Title: BatRandom enums

This pull request contains two parts:

- A simple reimplementation of the enumerations of `BatRandom`.
- A new module `test_random.ml` that tests the new code.

As I see it this implementation has two issues relative to the previous version:

- Cloning is more costly.
- `count` no longer returns `Infinite_enum`.

The second issue is easy to fix in principle, but I am not the one to do it. The commit is pretty clear on what I believe should be the behavior of the enumerations, and I don't plan on doing much more work on the code.