A Java Mersenne-Twister implementation based on GNU R's