Table of Contents

ENTROPY

X16

Defined in X16.BAS.

Returns a (somewhat) random 24-bit number that can serve as the seed for the RANDOMIZE command.

Function header

FUNCTION ENTROPY AS LONG () SHARED STATIC

Example

' Display a sequence of 10 random numbers
RANDOMIZE ENTROPY()
FOR i AS BYTE = 1 TO 10
  PRINT RND()
NEXT

See also