wrote a montecarlo iterator
Merge branch 'montecarlo' into scitech