The Crypto.getRandomValues() method lets you get cryptographically strong random values.
Crypto.getRandomValues()
MDN Reference