User Tools

Site Tools


ugbasic:user:random
Translations of this page:


ugBASIC User Manual

RANDOM

SYNTAX

  • = (BYTE) RANDOM
  • = (COLOR) RANDOM
  • = (WORD) RANDOM
  • = (ADDRESS) RANDOM
  • = (POSITION) RANDOM
  • = (DWORD) RANDOM

PURPOSE

Calculate a random value.

EXAMPLE

 randomX = (POSITION) RANDOM

AVAILABLE ON

  • ZX Spectrum 48K
  • Commodore 64

SEE ALSO