<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi,<BR>
I want to write a small script for ear training with Chuck. Therefore Chuck should produce values that seem to be quite random. But it seems like that the standard functions here are too deterministic. I know that a non-deterministic random function would not be possible, but most programming languages&nbsp;provide functions that create at least new numbers every time&nbsp;I start the same code. However, in chuck something like the&nbsp;following always prints the same numbers when I run it:<BR>
&nbsp;<BR>
while(true){<BR>&nbsp;&nbsp; 1::second =&gt; now;<BR>&nbsp;&nbsp; Math.rand2(50, 1000) =&gt; int rndNumber;<BR>&nbsp;&nbsp; &lt;&lt;&lt;rndNumber&gt;&gt;&gt;;<BR>}&nbsp;<BR>
&nbsp;<BR>
Is there an easy way to get something more unpredictable? I don't want to go deep into random generator programming. But the function does not really what you would expect of a random generator, does it? <BR>
&nbsp;<BR>
Cheers<BR>
&nbsp;<BR>
Jakob<BR><br /><hr />Connect to the next generation of MSN Messenger   <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>