extern crate randomorg;

fn main() {
    use std::env;
    use randomorg::Random;

    let r = Random::new(env::var("RANDOM_ORG_API_KEY").unwrap());
    println!("Result: {:?}", r.generate_integers(-100, 100, 15, true).unwrap());
}

extern crate randomorg;

fn main() {
    use randomorg::Random;

    let r = Random::new("API KEY HERE");
    println!("Result: {:?}", r.generate_integers(-100, 100, 15, true));
}

--- 
+++ 
@@ -1,8 +1,9 @@
 extern crate randomorg;
 
 fn main() {
+    use std::env;
     use randomorg::Random;
 
-    let r = Random::new("API KEY HERE");
-    println!("Result: {:?}", r.generate_integers(-100, 100, 15, true));
+    let r = Random::new(env::var("RANDOM_ORG_API_KEY").unwrap());
+    println!("Result: {:?}", r.generate_integers(-100, 100, 15, true).unwrap());
 }
Use environment variable in the example

This will help in reproducing problems in nightly builds.
