Tinderbox v9 Icon

^randomLine( item )^

Export Code Type: 

Export Code Scope of Action: 

Export Code First Added: 

Export Code Last Altered: 

 Data Include   [other codes of this type]

 item   [codes with similar scope]


 As at baseline

^randomLine( item )^

Scans the text of a designated item or note (or, if no argument is supplied, the current note). The text is split at paragraph breaks (e.g. carriage returns), and one line (i.e. paragraph) is chosen at random.

Here is a random line from note "Specimen text for test":-

This is a sentence. And another. Yet more. The first paragraph ends now. Now paragraph two follows. It has sentences too. Note very many, and it stops here. The third paragraph is not different. It too has sentences. It then finishes. ^do(Check)^ The fourth is the last paragraph. It completes here.