The RandomSource.getRandomValues() method lets you get cryptographically random values. The array given as the parameter is filled with random numbers (random in its cryptographic meaning).
The Crypto.subtle read-only property returns a SubtleCrypto object allowing to perform cryptographical operations.