Use mersenne twister in Sample.js
Fix histogram scaling.