Comparing the Mersenne Twister in Java and matlab
问题 I'm comparing the mersenne twister in Java and matlab. I'm using the same seed in both. My problem is that when i print out ten numbers from each number generator (Mersenne Twister running in Java and Matlab respectively), the resulting output doesn't seem to match. The output data from the Matlab version prints out every second number from the program in Java. Java prints: 0.417, 0.997, 0.720, 0.932, 0.0001.. Matlab prints: 0.417, 0.720, 0.0001.. Can anyone point me in the right direction to