Sorry for the blunt comment and I might be missing something obvious here, but: why not just use something proven and fast like mersenne twister? :) .mm