March 2014 update

This commit is contained in:
Ingy döt Net 2014-04-02 16:56:35 +00:00
parent 09687c4926
commit a25938f123
1846 changed files with 21876 additions and 5203 deletions

View file

@ -0,0 +1,15 @@
use std::io::timer::sleep;
use std::rand::{rng, Rng};
fn main() {
let mut random = rng();
for word in "Enjoy Rosetta Code".words() {
let local_word = word.to_owned();
let snooze_time = random.gen_range::<u64>(0, 1000);
spawn(proc() {
sleep(snooze_time);
println!("{}", local_word);
});
}
}