closures-example.x10 54 B

12
  1. val r = new Random();
  2. val rand = () => r.nextDouble();