random number between 0 and n. N must be a constant.</P>

<PRE><CODE>x = Random(10);</CODE></PRE>

<H3>SetRandomSeed(n)Function - RCX2, Spy</H3>

<P>Seed the random number generator with n. N may be an expression.</P>

<PRE><CODE>SetRandomSeed(x); // seed with value of x</CODE></PRE>

<H3>BatteryLevel()Value - RCX2, Spy</H3>

<P>Return the battery level in millivolts.</P>

<PRE><CODE>x = BatteryLevel();</CODE></PRE>

<H3>FirmwareVersion()Value - RCX2, Spy</H3>

<P>Return the firmware versi