All Functions

list - custom list

The list function returns one random value from a custom list of options.

You can specify the items in the list as a comma separated string.

Usage(s)

list ( $string1 [, ... , $stringN] ) Returns one random option from the list

Parameter(s)

$string Minimum one $string item must exist. Multiple items in the list are separated by a comma ","

Example(s)

a Simple list

list(red,green,blue,yellow) x 20 iterations returns:
yellow
red
yellow
blue
green
blue
green
yellow
red
blue
blue
blue
green
blue
green
yellow
green
red
blue
yellow

Generating e-mail addresses using specific domains using the list operation

string(3,6).string(3,6)@list(yahoo.com,gmail.com,outlook.com,mail.net)

qajun.vodemo@mail.net
nopab.qebewa@gmail.com
jez.recis@outlook.com
qijijo.xebu@gmail.com
tec.gegyd@yahoo.com
tygy.vicoqa@yahoo.com
vafiw.dexecu@outlook.com
jikaqi.vup@gmail.com
givy.cot@mail.net
byrolu.rul@gmail.com
noso.kop@gmail.com
xeh.qenu@gmail.com
fabavu.syhu@gmail.com
wecy.kuqatu@yahoo.com
kizito.xoj@yahoo.com
veha.kepy@outlook.com
biko.haqa@gmail.com
zuxov.wene@gmail.com
duvohi.qehy@gmail.com
qijy.vif@outlook.com

Combining random strings with random numbers using the list operation

list(int(),string1,int(500,600),string(int(3,6)))

556
dote
string1
hac
590
kugu
qufic
3
533
542
5
532
6
string1
511
538
2
string1
string1
528

See also

increment - incremental value range - range of numbers