mercredi 15 juillet 2020

How do I generate random numbers using HC-128 in Rust?

I would like to generate random numbers using the crate rand_hc. The documentation states:

This implementation uses an output buffer of sixteen u32 words, and uses BlockRng to implement the RngCore methods.

I am very new to rust and do not understand anything in the documentation. How can I just generate a random number in a range 0 to N?




Aucun commentaire:

Enregistrer un commentaire