13 lines
278 B
Plaintext
13 lines
278 B
Plaintext
|
use core::*;
|
||
|
|
||
|
fn main() {
|
||
|
for ["Alice", "Bob", "Carol"].each |&name| {
|
||
|
do task::spawn {
|
||
|
let v = rand::Rng().shuffle([1, 2, 3]);
|
||
|
for v.each |&num| {
|
||
|
io::print(fmt!("%s says: '%d'\n", name, num))
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|