Skip to content

Instantly share code, notes, and snippets.

@rbitr
rbitr / random_notes.md
Last active December 27, 2025 05:35
Confusion about using $RANDOM to generate random numbers

Random numbers in bash et al

There is a variable $RANDOM than you can read in bash or zsh to get a random number beteen 0 and 32767. Here in zsh on my (old) mac:

% echo $RANDOM
13757
% echo $RANDOM
16896
@ih2502mk
ih2502mk / list.md
Last active March 20, 2026 16:39
Quantopian Lectures Saved
@spacepatcher
spacepatcher / Breach Compilation (1.4 billion credentials) in Postgres.md
Last active February 12, 2026 18:51
Breach Compilation (1.4 billion credentials) in Postgres.md