npm install better-random.js
Then, in your project:
import * as random from 'better-random.js';
const rng = new random.RandomEngine();
or
const random = require('better-random.js');
const rng = new random.RandomEngine();
The documentation is out of date and highly inaccurate for the current version. Docs for the previous version can be found here and might explain some terminology still used in current version. The docs might be updated later.