Bioinformatics/Subsequence: Difference between revisions

→‎{{header|jq}}: gshuf details
(→‎{{header|jq}}: show full DNA strand)
(→‎{{header|jq}}: gshuf details)
Line 302:
gshuf or jot to provide the source of randomness. Here we use
`jot -r N MIN MAX` but a fourth argument can also be
used to specify a seed. An alternative would be to use `gshuf` along the lines of:
<lang sh>
# For 200 pseudo-random integers in the range 0 to 3 inclusive:
gshuf -i 0-3 -r -n 200 --random-source=/dev/random
</lang>
 
Note that the indices shown below are offsets (i.e., the index origin is taken to be 0).
2,484

edits