^randomLine( item )^

Tinderbox Icon

Code Type:   Data Include
Code Scope of Action:   item

^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. a paragraph) is chosen at random.

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

The fourth is the last paragraph. It completes here.

Up: Export Codes - Full Listing
Previous: ^randomChildOf( item )^  Next: ^root^ 

[Last updated: 14 Dec 2009, using v5.0]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox