seqtk

https://github.com/lh3/seqtk

Subsample 10% of reads in a fastq file:

seqtk sample reads.fastq 0.1 > subsampled_reads.fastq