moonbitstack/moonseed/examples/browser does not have a README file

    below_hits

    fn below_hits(upper : Int, trials : Int, bin : Int, bins : Int) -> Int

    How many of trials draws of below(upper) land in bucket bin of bins equal buckets over [0, upper). Every bucket counts the same run: the replay starts at the front each time, so the bars partition one sample.

    mod_hits

    fn mod_hits(upper : Int, trials : Int, bin : Int, bins : Int) -> Int

    The same count, but by reducing one raw byte modulo upper: the biased draw below exists to avoid. Same replay, same number of draws.

    open

    fn open() -> Int

    Restart the tile's stream at the front of the pool.

    push

    fn push(b : Int) -> Unit

    Add one byte. The page pushes a few thousand of these at load.

    reset

    fn reset() -> Unit

    Forget every byte pushed so far.

    taken

    fn taken() -> Int

    How many bytes the page has given.

    unit

    fn unit() -> Double

    The next byte, as a number in [0, 1), drawn through below(256) so the page never reasons about a mask itself. Past the end of the pool it reports the middle value rather than pretending.

    Source Files