********************************************************************** Media Pro 4000 Brief Date: September 18th 1998 File: MP4000_Cues_Random_Verb_Use_BR091898.txt Module: MP4000 Software, Cues Title: Typical Examples using the Random Verb. ********************************************************************** 1) Example Syntax a) Random @v1 From 0 to 65534; 1) Puts a random # between 0 and 65534 into Variable 1 b) Random @v2 From 1 to 65535; 2) Puts a random # between 1 and 65535 into Variable 2 c) Random @v3 From @v1 to @v2; 3) Puts a random # between @v1 and @v2 into Variable 3 d) Random @i800 From 0 to 255; 4) Puts a random # between 0 and 255 into input channel 800 e) Random @o600 From 0 to 255; 5) Puts a random # between 0 and 255 into output channel 600 f) Random @v63 From 65534 to 2; 6) Generates one of the #s (65534, 65535, 0, 1, 2) 2) Example Cue LOOP: Random @v10 from 1 to 3; Puts a Random # between 1 and 3 into Var 10 If @v10 = 1 GoTo CRASH; If Variable 10 equals 1 Play the Crash Sequence If @v10 = 2 GoTo BANG; If Variable 10 equals 2 Play the Bang Sequence If @v10 = 3 GoTo BOOM; If Variable 10 equals 3 Play the Boom Sequence GoTo LOOP; CRASH: Play 'DSM01' Track 1 Segment 1; Plays Crash Sound Effect Delay 00:00:05.00; Delay 5 seconds for Crash Sequence to complete GoTo LOOP; ; BANG: Play 'DSM01' Track 1 Segment 2; Plays Bang Sound Effect Delay 00:00:01.00; Delay 1 seconds for Bang Sequence to complete GoTo LOOP; ; BOOM: Play 'DSM01' Track 1 Segment 3; Plays Boom Sound Effect Delay 00:00:02.00; Delay 2 seconds for Boom Sequence to complete GoTo LOOP; 3) Notes 1) Random Generates a Integer Random Number. 2) The Difference Between From and To must be less than or equal to 65534. 3) The Random # can be placed into a Variable, Input Channel, or Output Channel. 4) The Random # Verb can be passed Constants, or Variables in the FROM & TO tokens. 5) The Random numbers will not repeat on a hard, or soft reset. 6) The Random numbers will repeat at power on, If a real time clock is not installed. ---------------------------------------------------------------------- Specifications subject to change at any time. The data in this document incorporates proprietary rights of Anitech Systems Inc., 25021 Anza Drive, Valencia, CA 91355 USA Phone (805) 257-2184 Fax (805) 257-2025 Phone (661) 257-2184 Fax (661) 257-2025 Email Mail@Anitech-Systems.com Web http://www.Anitech-Systems.com Any party accepting this document does so in confidence and agrees that it shall not be duplicated in whole or in part, nor disclosed to others, without the consent of ANITECH SYSTEMS.