examples/random/diffusion.rb in gsl-1.15.3 vs examples/random/diffusion.rb in gsl-1.16.0.6
- old
+ new
@@ -17,10 +17,10 @@
h[1] = GSL::Histogram.alloc(61, -30, 30)
h[2] = GSL::Histogram.alloc(61, -30, 30)
i = 0
for n in [6, 50, 100] do
- M.times do
+ M.times do
s = 0
n.times do
ds = rng.get%2 == 0 ? 1 : -1
s += ds
end