Interesting library!
I just want to confirm that I'm using it correctly. Say I want to sample a
normally distributed integer between 4 and 10, is the following feasible:
import alea, future
import random/urandom, random/mersenne
var rng = wrap(initMersenneTwister(urandom(16)))
let
g = gaussian(mu = 0, sigma = 1)
a = g.map((x: float) => x + 7)
b = a.filter((x: float) => x > 4)
c = b.filter((x: float) => x < 10)
echo int(rng.sample(c))
