That link says "The Crypto.getRandomValues() method lets you get cryptographically strong random values.". That sentence implies that
random values exist which are not cryptographically strong, and so are
not given. Therefore, the method does not give values in the range
randomly. It may suit Jonas; but it does not provide full randomness,
and is badly named.
On Sunday, May 23, 2021 at 10:57:14 AM UTC-5, John Stockton wrote:
On Thursday, 29 April 2021 at 19:24:49 UTC+1, Arno Welzel wrote:
Jonas Thörnvall:
[snip]
Why not just this:
<https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Math/random>Quite a lot bad, as I recall.
See http://web.archive.org/web/20150510110440/http://www.merlyn.demon.co.uk/js-randm.htm
which links to http://web.archive.org/web/20180611034551/https://github.com/nquinlan/better-random-numbers-for-javascript-mirror .
See also http://www.jibbering.com/faq/index.html#randomNumber
and see what https://en.wikipedia.org/wiki/Random_number says and cites.
According to http://web.archive.org/web/20130127232731/http://www.merlyn.demon.co.uk/quotings.htm -If you want better random numbers use the following:
https://en.wikipedia.org/wiki/Donald_Knuth wrote/said
"Random numbers should not be generated with a method chosen at random".
<https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues>
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 249 |
Nodes: | 16 (2 / 14) |
Uptime: | 75:05:18 |
Calls: | 5,505 |
Files: | 11,668 |
Messages: | 5,075,986 |