rust-random / book

The Rust Rand Book
Other
49 stars 19 forks source link

Document how to make a type randomizable #47

Closed kazcw closed 2 years ago

kazcw commented 2 years ago

I don't see any documentation for how to make a type createable with random() and rng.gen(). I think the book could use a page for type implementers with an example of impl Distribution<T> for Standard.