Replace these to lines with just
```
var random = defined(options.seed) ? new SeededRandom(seed) : Math.random
```

Then called `random()` below.