Pseudo random number generators in TypeScript