# ZennoLab

Automate everything

en:ranges

# Differences

This shows you the differences between two versions of the page.

 en:ranges [2015/09/16 14:32]vladz en:ranges [2015/09/23 18:49]lokiys Both sides previous revision Previous revision 2015/09/23 18:49 lokiys 2015/09/18 10:12 vladz [Extracting a random line or several random lines from a range] 2015/09/16 14:32 vladz 2015/09/16 11:02 vladz [Extracting a random line or several random lines from a range] 2015/08/13 16:16 vladz 2015/07/14 15:51 external edit2012/07/03 15:32 rostonix 2012/07/03 15:29 rostonix 2012/07/03 15:26 rostonix 2012/07/03 15:21 rostonix 2012/07/03 14:12 darkdiver created Next revision Previous revision 2015/09/23 18:49 lokiys 2015/09/18 10:12 vladz [Extracting a random line or several random lines from a range] 2015/09/16 14:32 vladz 2015/09/16 11:02 vladz [Extracting a random line or several random lines from a range] 2015/08/13 16:16 vladz 2015/07/14 15:51 external edit2012/07/03 15:32 rostonix 2012/07/03 15:29 rostonix 2012/07/03 15:26 rostonix 2012/07/03 15:21 rostonix 2012/07/03 14:12 darkdiver created Line 58: Line 58: To do this write random in the line number field then the number of lines you need to extract and then in brackets indicate the range of lines from which to extract. \\  \\ Example: \\  \\ **random1(1,​12-15,​35-end)** ​ - to extract **one** ​ line from a range \\  \\ or \\  \\ **random15(1,​12-15,​35-end)** ​ - to extract **15** ​ lines from a range. To do this write random in the line number field then the number of lines you need to extract and then in brackets indicate the range of lines from which to extract. \\  \\ Example: \\  \\ **random1(1,​12-15,​35-end)** ​ - to extract **one** ​ line from a range \\  \\ or \\  \\ **random15(1,​12-15,​35-end)** ​ - to extract **15** ​ lines from a range. + randomAll(1,​12-15,​35-end) to extract all lines from specified interval randomly (randomAll is available in ZennoPoster starting from version 5.9.3). ===== Excluding ranges ===== ===== Excluding ranges ===== Line 81: Line 81: To take first 5 odd lines, use the following range: **odd15(1,​12-15,​35-end)** To take first 5 odd lines, use the following range: **odd15(1,​12-15,​35-end)** - To take all odd lineы: **oddAll(1,​12-15,​35-end)** ​ + To take all odd lines: **oddAll(1,​12-15,​35-end)** ​ The operator **odd** is available starting from ZennoPoster 5.9.3 version. The operator **odd** is available starting from ZennoPoster 5.9.3 version.