dimanche 4 juin 2023

Rust deterministic, uniform distribution

I am looking at the rand crate and I am not sure how to sample from a distribution such that the resulting samples are uniform and deterministic.

Deterministic means that you get the same numbers on 2 distinct program invocations.

The main issue I am facing is that rand by default is not deterministic. Id does have rand_pcg for determinism, but then I don;t know how to make the distribution uniform.




Aucun commentaire:

Enregistrer un commentaire