Roulette Xtreme 2.0 - System Designer
Locate Distance between
Identifier Index > L > Locate Distance between

Glossary Item Box

Locate Distance between

Format:  Locate Distance between  from-support-action  to-support-action  dest-record-data

where

Description

The Locate Distance between identifier returns the numeric distance on the roulette wheel between the from-support-action and the to-support-action and assigns the distance value to the dest-record-data.  The distance is referred to the distance between two numbers on the roulette wheel including the destination number.

When using the Record Layout identifier as the to-support-action or from-support-action, it must only contain roulette individual numbers otherwise an error message will be displayed.

Double Zero Wheel Linear Layout

00, 27, 10, 25, 29, 12, 8, 19, 31, 18, 6, 21, 33, 16, 4, 23, 35, 14, 2, 0, 28, 9, 26, 30, 11, 7, 20, 32, 17, 5, 22, 34, 15, 3, 24, 36, 13, 1

By referring to the linear double zero wheel listed above, we can see that the distance value between the numbers 16 and 19 is 6.

Single Zero Wheel Linear Layout

0, 32, 15, 19, 4, 21, 2, 25, 17, 34, 6, 27, 13, 36, 11, 30, 8, 23, 10, 5, 24, 16, 33, 1, 20, 14, 31, 9, 22, 18, 29, 7, 28, 12, 35, 3, 26

By referring to the linear single zero wheel listed above,  we can see that the distance value between the numbers 30 and 29 is 15.

The distance between two numbers is always calculated by using the shortest distance on the wheel.

Example

We want to find the distance between the last number that has appeared to the Number 30.  We will store that value to the data value of record distance. The following example will perform this task.

RX Script Copy Code
Copy Last Number to Record "last number" layout
Locate Distance between the Record "last number" layout to Number 30 into Record "distance" Data

Results from example

Copyright © 2003 UX Software. All rights reserved