Skip to main content
10 events
when toggle format what by license comment
Jul 22, 2021 at 13:05 history closed Chris Davies
CommunityBot
Duplicate of Using /dev/random, /dev/urandom to generate random data
Jul 22, 2021 at 12:51 comment added Kusalananda What do you mean by "fastest"? Do you want a single random number, or a million? If you want a single one, then it shouldn't really matter what algorithm you use out of the ones you list. If you want a million (e.g. in a loop), then the shell is the wrong language for you to be using for your application. Also, benchmarks will often depend on hardware, so the "fastest" on one system may well be not the fastest on another, depending on the hardware and the underlying libraries used. Do your own benchmarking.
Jul 22, 2021 at 12:49 comment added Alfred.37 @roaima, This is good, it describes how to measure the execution time.
Jul 22, 2021 at 12:43 history edited Alfred.37 CC BY-SA 4.0
deleted 11 characters in body
Jul 22, 2021 at 12:42 comment added Chris Davies Related - Using /dev/random, /dev/urandom to generate random data
Jul 22, 2021 at 12:42 comment added Alfred.37 @roaima, the tested alternate slutions are much slower.
Jul 22, 2021 at 12:41 comment added Chris Davies Related - Search for "random numbers" on this site
Jul 22, 2021 at 12:40 history edited Alfred.37 CC BY-SA 4.0
added 10 characters in body
Jul 22, 2021 at 12:37 history edited Alfred.37 CC BY-SA 4.0
added 10 characters in body
Jul 22, 2021 at 12:12 history asked Alfred.37 CC BY-SA 4.0