WinLpt (WndLpt)

Intro

Application

Vis Plugin

Screenshots

History

Downloads

Lpt Tools

SDK

Script

Basic syntax

All Instructions

Extended syntax

Additional rules

Hardware

LED-to-LPT connection

Panel map

Arduino

Lpt Tools

LPT Buttons

Stroboscope

EasyDrive

LptPort

Other

Mark As Good

Unmark bad clusters

RANDOM

The RANDOM keyword modifies sequence/branch functions to call (jump) random functions (labels).
The RANDOM command set counter that modifies subsequent sequence/branch functions to call (jump) random functions (labels).

Syntax

random [[set] add] ; Set random mode for ([set] + [add]) subsequent commands
random <branch command> ; Modify current command

Examples

random call FUNCTION1 FUNCTION2 FUNCTION3    ; Call random function
random call FUNCTION1 FUNCTION2 FUNCTION3 5  ; 5 times call random function 

random 3 ; Use random mode for 3 subsequent sequence/branch commands
call FUNCTION1 FUNCTION2 FUNCTION3    ; Call any function because of random mode
call FUNCTION1 FUNCTION2 FUNCTION3 2  ; Twice call any functions
jump LABEL1 LABEL2 LABEL3 LABEL4      ; Jump to any label because of random mode

random 3    ; Use random mode for 3 subsequent commands
random 2    ; Use random mode for 3 + 2 = 4 subsequent commands
random 5    ; Use random mode for 4 + 5 = 9 subsequent commands
random      ; Use random mode for 9 + 1 = 10 subsequent commands
random 0    ; Clears counter of random mode
random 0 1  ; Use random mode for 0 + 1 = 1 subsequent commands
random 0 4  ; Use random mode for 0 + 4 = 4 subsequent commands