Randomly shuffle all lines or select 1 or more random lines from a file.
Hit the subscribe button to receive more videos like this!
REFERENCE LINKS
---------------------------------------------------
► https://nickjanetakis.com/blog/random...
COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.
► https://nickjanetakis.com/courses/
THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...
FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter: / nickjanetakis
► GitHub: https://github.com/nickjj
TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:35 -- Extra steps if you're on macOS
1:06 -- Generating ordered lines of output
1:33 -- Using sort
2:31 -- Reading lines from a file
3:25 -- Using shuf
4:07 -- Going over the benchmarks
7:03 -- Selecting random lines from a file with sort and shuf