Start Back Next End
  
ZBasic System Library
262
ZBasic Microcontrollers
Randomize
Type
Subroutine
Invocation
Randomize()
Discussion
This routine seeds the random number generator with the value of Register.RTCTick.  This is can be
used to introduce some randomness into the sequence of values returned by Rnd() especially if the time
that Randomize() gets called has some uncertainty due to external events, e.g. the time that a user takes
to press a key.
See Also
Previous page Top Next page