Skip to content

Instantly share code, notes, and snippets.

@aturon
Created March 18, 2015 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aturon/1dbb8a06d3f3d966126e to your computer and use it in GitHub Desktop.
Save aturon/1dbb8a06d3f3d966126e to your computer and use it in GitHub Desktop.
trait Rand<Rng, Distribution> {
type Iter: Iterator<Item = Self>;
fn rand(rng: Rng, dist: Distribution) -> Iter;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment