I am just trying to implement a simple RNG in JS.
What\'s happening is javascript evaluates 119106029 * 1103515245 to be 131435318772912110
119106029 * 1103515245
131435318772912110
With the arrival of BigInt, you can now perform these calculations with accuracy:
console.log((119106029n * 1103515245n).toString());