<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 08/14/2015 04:27 PM, Xiangrong Fang
wrote:<br>
</div>
<blockquote
cite="mid:CAP93jB38_jXw2t_1kuRwc7V9a0pzK0r6PGujUu8G030mWvXKUQ@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:large;display:inline">
Well, practically, how can I get totally unpredictable
numbers?</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Nothing is totally unpredictable <span class="moz-smiley-s1"><span>
:-) </span></span><br>
<br>
I would set randseed via <tt>randseed and after this you can just
use rand() for at least 2 gig numbers without any perceptible predictability.
</tt><br>
<br>
<blockquote
cite="mid:CAP93jB38_jXw2t_1kuRwc7V9a0pzK0r6PGujUu8G030mWvXKUQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:large;display:inline">
On stackoverflow, someone suggested using hash value of
data as IV, but that's still flawed somehow.</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
There are lots of "scientific" articles on creating random numbers
(I read some during my work at the university). Most of them are
just nonsense. <br>
<br>
The common request is "unpredictable" and "equal distribution". <br>
<br>
But a "real" random generator <b>can (and according to Murphy will
sometimes during Eternity) </b>happily create an uninterrupted
series of a million of Zeros. To human perception this is neither
unpredictable nor equal distribution. In fact random numbers are
just a matter of taste. <br>
<br>
-Michael<br>
</body>
</html>