2010-07-25 21:45:09 -07:00
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
|
|
|
|
// -*- rust -*-
|
2010-07-25 21:45:09 -07:00
|
|
|
use std;
|
2011-05-12 17:24:54 +02:00
|
|
|
import std::rand;
|
2010-07-25 21:45:09 -07:00
|
|
|
|
|
|
|
fn main() {
|
2011-06-15 11:19:50 -07:00
|
|
|
let rand::rng r1 = rand::mk_rng();
|
2010-07-25 21:45:09 -07:00
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
2011-06-15 11:19:50 -07:00
|
|
|
{
|
|
|
|
auto r2 = rand::mk_rng();
|
|
|
|
log r1.next();
|
|
|
|
log r2.next();
|
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
|
|
|
log r2.next();
|
|
|
|
log r2.next();
|
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
|
|
|
log r2.next();
|
|
|
|
log r2.next();
|
|
|
|
log r2.next();
|
|
|
|
}
|
2010-07-25 21:45:09 -07:00
|
|
|
log r1.next();
|
|
|
|
log r1.next();
|
2011-06-15 11:19:50 -07:00
|
|
|
}
|