stainedofmind
Member
So for fun I set out to program a gml implementation of the 32bit mersenne twister, which was simple enough (though I haven't tested it yet). However, that's all well and good, bit now in want to take the output it generates and make it usable by converting to to the 0.0 to 1.0 range and I've hit a wall. Theres plenty of information out there about the twister itself, but not really anything about what to do with the output. The only thing I was able to find was something in the C related family regarding uniform real distribution, but I dont know what to do with that information. So I guess my question would be, how do I convert the mersenne twister output into a usable range? Just dividing by the max value doesn't quite work.