Use window.crypto.getRandomValues(), a CSPRNG
Use window.crypto.getRandomValues(), a CSPRNG

Math.random() is not a cryptographically strong Random Number
Generator.

https://stackoverflow.com/questions/5651789/is-math-random-cryptographically-secure

window.crypto.getRandomValues() is now well supported by browsers:
http://caniuse.com/#search=crypto.getRandomValues

getDiceroll() now accepts one argument, which is an Integer
specifying how may die rolls should be performed at once. This is more
efficient than calling for a single random value in a loop. It defaults
to a five die roll.

grempe/diceware,grempe/diceware,grempe/diceware