Random sampling

Glad it was of help! :slight_smile: Feel free to mark it as the solution.

Just a side note - always great to have a working bit of code (the code you provided was enough to get going but do try and create a reprex as that just makes it even easier!) FAQ: How to do a minimal reproducible example ( reprex ) for beginners - #2 by andresrcs