Navigation:  Macroses >

Random

Previous pageReturn to chapter overviewNext page
Show/Hide Hidden Text

 

A random number within a specified range

This macro allows you to get a random whole number specifying the upper and lower range limits.

 

Example

 

Lower Bound

0

Upper Bound

1000

 

Macro

{-Random.Int-|-0-|-1000-}

 

Result

181

 

A random rational number within a specified range

This macro allows you to get a random rational number specifying the upper and lower range limits.

 

Example

 

Lower Bound

0

Upper Bound

1

 

Macro

{-Random.Double-|-0-|-1-}

 

Result

0,829109011604036 

 

A random text

This macro allows you to generate a random text specifying the text length and symbols that must be used. C for both small and capital letters, D for figures and S – indicate your own symbol sets.

 

Example 1

 

Text Length

10

Options

Not specified

Their characters

Not specified

 

Macro

{-Random.Text-|-10-}

 

Result

qaxrhyurwk

 

Example 2

 

Text Length

10

Options

s

Their characters

abcdefgh12345

 

Macro

{-Random.Text-|-10-|-s-|-abcdefgh12345-}

 

Result

g4be1f4134

 

Data shuffle

Pass a string, written through a divider, to the macro. Specify the division symbol and the number of the required substring. This macro will sort out data randomly in the transmitted string.

 

Example

 

Input string

123-456-789-321-654-987

Separator character

-

 

Macro

{-Random.Shuffle-|-123-456-789-321-654-987-|---}

 

Result

987-456-123-321-789-654