var random = new Uint16Array(20); window.crypto.getRandomValues(random); alert(JSON.stringify(random));