RosettaCodeData/Task/Random-numbers/D/random-numbers-2.d

11 lines
199 B
D
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
import tango.math.random.Random;
void main() {
double[1000] list;
auto r = new Random();
foreach (ref l; list) {
r.normalSource!(double)()(l);
l = 1.0 + 0.5 * l;
}
}