Bioinformatics/Subsequence: Difference between revisions
Content added Content deleted
(→{{header|jq}}: typo) |
|||
Line 299: | Line 299: | ||
as can be found at https://rosettacode.org/wiki/Random_numbers#jq |
as can be found at https://rosettacode.org/wiki/Random_numbers#jq |
||
In practice, it's usually more convenient to use a utility such |
In practice, it's usually more convenient to use a utility such as |
||
gshuf or jot to provide the source of randomness. Here we use |
gshuf or jot to provide the source of randomness. Here we use |
||
`jot -r N MIN MAX` but a fourth argument can also be |
`jot -r N MIN MAX` but a fourth argument can also be |
||
used to specify a seed. |
used to specify a seed. |
||
Note that the indices shown are offsets (i.e., the index origin is taken to be 0). |
Note that the indices shown below are offsets (i.e., the index origin is taken to be 0). |
||
<lang sh> |
<lang sh> |
||
#!/bin/bash |
#!/bin/bash |