Skip to content

Instantly share code, notes, and snippets.

@vadixidav
Created April 29, 2016 03:21
Show Gist options
  • Select an option

  • Save vadixidav/3a3c8ab449c8d9425654b3e75b49ab99 to your computer and use it in GitHub Desktop.

Select an option

Save vadixidav/3a3c8ab449c8d9425654b3e75b49ab99 to your computer and use it in GitHub Desktop.
extern crate rand;
mod text;
fn main() {
use rand::SeedableRng;
let mut lex = text::Lexicon::new(rand::Isaac64Rng::from_seed(&[1, 2, 3, 4]));
let nowhere = lex.source("nowhere".to_string());
let nobody = lex.author(nowhere.clone(), "nobody".to_string());
let message = lex.tell(nowhere.clone(), nobody, "nothing".to_string());
assert!(message.is_none());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment