this post was submitted on 23 Oct 2025
27 points (84.6% liked)

Linux

10322 readers
784 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] kbal@fedia.io 8 points 1 month ago (1 children)

Generate Random Numbers

I prefer to generate random words (mostly for generating passwords):

alias randword='head -$[$SRANDOM % `wc -l /usr/share/dict/words | cut -f1 -d" "`] /usr/share/dict/words | tail -1'
[–] Ooops@feddit.org 3 points 1 month ago

The 'random numbers' I mostly generate are UUIDs...

which can indeed be done nicely in the terminal by just reading directly from the kernel's rng at /proc/sys/kernel/random/uuid