Lehmer random numbers generator implemented in TypeScript/JS