Description: |
Returns a random string determined by a mode and having a length n. |
Parameters:
|
Length n-The length of a string.
Mode constant-One of the following:
ALPHA-Returns only random letters.
ALPHA_LOWER-Returns random lowercase letters.
ALPHA_NUM-Returns random letters and numbers.
ALPHA_UPPER-Returns random uppercase letters.
ANY-Returns any random ASCII characters.
NUM-Returns only numbers.
RANGE-Returns ASCII characters in the range specified. |
Syntax: |
$BFRandStr(n,[constant],[1..255],[1..255]) |
Example: |
$BFRandStr(10) ; Returns 10 random characters. $BFRandStr(1,RANGE,65,67) ; Returns either A, B, or C. |
Description: |
Randomly select unique items from a list. |
Parameters: |
string1-The first string to return from a list.
string2-The second string to return from a list.
stringN-The last string to return from a list. |
Syntax: |
$BFURandList(string1,string2,… stringN) |
Example:
|
$BFURandList("Red", "White", "Blue", "Yellow") ; returns Blue the first time this function executes then Yellow, Red, White, and Blue for subsequent executions of this function. Notice that Blue did not repeat until all other colors returned. |
Description: |
Returns an item from a list. The item returned depends on the mode selected. |
Parameters:
|
Retrieval Mode: Random: Select a random item from the list. SEQUENTIAL: Select each item sequentially. UNIQUE: Select a non-repeating item from the list. string1-The first string to return from a list. string2-The second string to return from a list. stringN-The last string to return from a list. |
Syntax: |
$BFList(Retrieval Mode, string1,string2,… stringN) |
Example: |
$BFList (Sequential "1", "2", "3", "4") Returns 1 2 etc. $BFList (Random 1, 2, 3, 4) Returns 2 3 3 1 2 4 etc. $BFList (Unique, "1", "2", "3","4") Returns 2 4 3 1 2 etc. |
© ALL RIGHTS RESERVED. 使用条款 隐私 Cookie Preference Center