|
|
<h1>Zufallszahlen</h1>
|
|
|
|
|
|
<ul>
|
|
|
<li><a href="#anker-0" style="float: right;">llirq_GetRand()</a>31 Bit positiv Integer</li>
|
|
|
<li><a href="#anker-1" style="float: right;">llirq_GetRandI()</a>32 Bit neg/pos Integer</li>
|
|
|
<li><a href="#anker-2" style="float: right;">llirq_GetRandB()</a>1 Bit Integer</li>
|
|
|
<li><a href="#anker-3" style="float: right;">llirq_GetRandP()</a>Dezimal 0 bis einschliesslich 100</li>
|
|
|
<li><a href="#anker-4" style="float: right;">llirq_GetRandF()</a>Float Wert zwischen Min und Max</li>
|
|
|
<li><a href="#anker-5" style="float: right;">llirq_GetRandD()</a>Double Wert zwischen Min und Max</li>
|
|
|
</ul>
|
|
|
|
|
|
<!h2a=llirq_GetRand()>
|
|
|
<!xml=llirq_GetRand,function>
|
|
|
<!h2a=llirq_GetRandI()>
|
|
|
<!xml=llirq_GetRandI,function>
|
|
|
<!h2a=llirq_GetRandB()>
|
|
|
<!xml=llirq_GetRandB,function>
|
|
|
<!h2a=llirq_GetRandP()>
|
|
|
<!xml=llirq_GetRandP,function>
|
|
|
<!h2a=llirq_GetRandF()>
|
|
|
<!xml=llirq_GetRandF,function>
|
|
|
<!h2a=llirq_GetRandD()>
|
|
|
|
|
|
|
|
|
/*
|
|
|
<pre>
|
|
|
<font color="#0000ff">#define</font> <font color="#A000A0">LLIRQ_SECOND</font> (1000)
|
|
|
<font color="#0000ff">#define</font> <font color="#A000A0">LLIRQ_MINUTE</font> (60*<font color="#A000A0">LLIRQ_SECOND</font>)
|
|
|
|
|
|
<font color="#0000ff">extern</font> TxU32</font> <font color="#808080">llirq_rand;</font> // wird bei jeder Get Function neu gesetzt</font>
|
|
|
<font color="#0000ff">extern</font> float</font> <font color="#808080">llirq_uptime;</font> // time in seconds since game start</font>
|
|
|
|
|
|
<font color="#0000ff">TxU32</font> <font color="#800000">llirq_GetRand();</font> // random value, unsigned</font>
|
|
|
<font color="#0000ff">int</font> <font color="#800000">llirq_GetRandI();</font> // random value, signed integer!</font>
|
|
|
<font color="#0000ff">int</font> <font color="#800000">llirq_GetRandB();</font> // random value, 0 or 1</font>
|
|
|
<font color="#0000ff">int</font> <font color="#800000">llirq_GetRandP();</font> // random value, range 0-100 in percent</font>
|
|
|
<font color="#0000ff">float</font> <font color="#800000">llirq_GetRandF(float min, float max);</font> // random value, in range min<=x<=max</font>
|
|
|
<font color="#0000ff">double</font> <font color="#800000">llirq_GetRandD(double min, double max);</font> // random value, in range min<=x<=max</font>
|
|
|
|
|
|
<font color="#0000ff">void</font> <font color="#800000">llirq_ResetTime();</font> // Performance Counter r<>cksetzen</font>
|
|
|
<font color="#0000ff">float</font> <font color="#800000">llirq_GetDeltaTime();</font> // Liefert Zeit in Sekunden die seit dem letzten Aufruf vergangen ist</font>
|
|
|
|
|
|
<font color="#0000ff">long</font> <font color="#800000">llirq_GetTime(void);</font> // Zeit in millisekunden ab Systemstart</font>
|
|
|
<font color="#0000ff">void</font> <font color="#800000">llirq_Sleep(int milliseconds);</font> // Sleep, Kontrolle an ander Prozesse <20>bergeben</font>
|
|
|
</pre>
|
|
|
|
|
|
*/
|
|
|
|