randomeline(
randomeline(
TEXT
)

The randomeline( function returns a random line from multiple lines of text.

Parameters

This function has one parameter:

text – one or more lines of text, separated by carriage return characters.

Description

This function returns a random line from multiple lines of text. Each time you use this function a new random line will be returned.

    randomeline(commatocr("red,green,blue,gold,silver,white,black")) ☞ blue
    randomeline(commatocr("red,green,blue,gold,silver,white,black")) ☞ silver
    randomeline(commatocr("red,green,blue,gold,silver,white,black")) ☞ red
    randomeline(commatocr("red,green,blue,gold,silver,white,black")) ☞ gold

new

See Also

- +
- <
- <=
- <>
- =
- >
- >=
- after(
- alphabeticnumber(
- applescriptstring(
- array(
- arraybuild
- arraybuild(
- arraychange(
- arraydeduplicate(
- arraydelete(
- arrayelement(
- arrayfilter(
- arrayhack(
- arrayinsert(
- arraylookup(
- arraymerge(
- arraynumericsort(
- arrayrange(
- arrayrelocate
- arrayrelocate(
- arrayreverse(
- arrayreverselookup(
- arraysearch(
- arrayselectedbuild
- arrayselectedbuild(
- arraysize(
- arraysort(
- arraystrip
- arraystrip(
- asc(
- batchreplace
- batchreplace(
- before(
- beginswith
- between(
- binarytotext(
- boolstr(
- cardtype(
- characterfilter
- characterfilter(
- chr(
- chunkarray(
- clipboard(
- commalist(
- commatocr(
- commonpath(
- concatenate(
- connect(
- contains
- cr(
- createpassword
- crlf(
- crtolf(
- crtovtab(
- csvtotsv(
- Date Patterns
- date(
- datepattern(
- decodebase64(
- decrypt(
- defaulttext(
- encodebase64(
- encrypt(
- endswith
- export
- extract(
- filecatalog(
- firstline(
- firstword(
- fixedwidth(
- fixedwidthright(
- formatphone(
- gettaglocation
- hexbyte(
- hexlong(
- hexstr(
- hexword(
- htmlbold(
- htmlitalic(
- htmltablecell(
- htmltablecellexists(
- htmltablecellraw(
- htmltableheight(
- htmltablerow(
- htmltablerowraw(
- htmltablewidth(
- importcell(
- jsonexport(
- jsonexportline(
- jsonimport(
- lastline(
- lastword(
- left(
- length(
- lf(
- lftocr(
- like
- limit(
- linecount(
- lineitemarray(
- linescontain(
- linesnotcontain(
- linesort(
- linestrip(
- listchoices(
- listfiles(
- lookupall(
- lookupalldouble(
- lookupalloctet(
- lookupallquadruple(
- lookupallquintuplet(
- lookupallseptuplet(
- lookupallsextet(
- lookupalltriple(
- lower(
- mactoutf8
- makemergeformula(
- makenumberedarray
- match
- matchexact
- max(
- md5(
- mid(
- min(
- mixedupperword(
- naturaldate(
- notbetween(
- notcontains
- notmatch
- notmatchexact
- nth(
- nthline(
- nthword(
- Numeric Patterns
- onespace(
- onewhitespace(
- padzero(
- pattern(
- percentescape(
- percentunescape(
- perlscriptstring(
- places(
- quoted(
- radixstr(
- randomletter(
- randomword(
- rangecontains(
- rangematch(
- rangenotmatch(
- regexarray(
- regexarrayexact(
- regexliteral(
- regexmatch
- regexmatchexact
- regexreplace(
- regexreplaceexact(
- Regular Expressions
- removeprefix(
- removesuffix(
- rep(
- replace(
- replacemultiple(
- replaceword(
- replacewordexact(
- richtextdata(
- richtextdisplay(
- right(
- sandwich(
- search(
- searchanycase(
- setfieldproperties
- sha1(
- sha256(
- sha512(
- snip(
- soundex(
- soundslike
- stateabbreviations(
- statelookup(
- statename(
- str(
- stringreverse
- strip(
- stripchar(
- stripdiacriticals(
- striphtmltags(
- stripprintable(
- striptoalpha(
- striptonum(
- superarraybuild
- switchmatch(
- switchmatchexact(
- tab(
- tagparamaterarray(
- Text Arrays
- Text Funnels
- textafter(
- textbefore(
- textdisplay(
- textfilter(
- textstuff(
- texttobinary(
- time(
- timepattern(
- trim(
- trimleft(
- trimstart(
- upper(
- upperword(
- urldecode(
- urlencode(
- uspssecondaryunits(
- uspsstreetsuffixes(
- utf8tomac
- utf8tomac(
- val(
- vtab(
- vtabtocr(
- wordcount(
- xtag(
- xtagvalue(
- yoke(
- zbpattern(
- zeroblank(

History

Version | Status | Notes
1.0 | Updated | Carried over from Panorama 6.0, but is much faster.