RANDOM(6)
π RANDOM π
okay bestie, welcome to random(6) from the Games Manual β yes she lives in the games section, she's fun like that π
β¨ NAME β¨
random β random lines from a file or random numbers π²
π¦ SYNOPSIS π¦
random [-er] [denominator]
πΈ DESCRIPTION πΈ
so here's the vibe: random reads lines from standard input and copies them over to standard output β but only with a probability of 1/denominator. it's giving "maybe, maybe not" π
and if you don't pass a denominator? no worries babe, the default value for denominator is 2. fifty-fifty, a coin flip, iconic behavior fr fr πͺ
π OPTIONS π
the options are as follows:
-eβ if you specify this one,randomdoes not read or write <em>anything</em>. she just exits. like, immediately. and the exit value is a random number from0todenominator-1, inclusive β¨ (so yes, it's a little randomness dispenser, no cap)-rβ this one guarantees that the output is unbuffered. no sitting around in a buffer, she's posting live π₯
π SEE ALSO π
fortune(6)β go get you some wisdom, bestie π
reminder bestie: -e means literally nothing gets read or written. she's not being shy, that's just the assignment π
okay that's the whole page, mwah π«Ά this lil gem is from Debian and it's dated March 31, 1994 β old enough to be your cool aunt who still slays πβ¨π
π¦ where this page comes from
- debian bookworm: bsdgames 2.17-29+b1
- debian trixie: bsdgames 2.17-35
- fedora 43: bsd-games 2.17-82.fc43 Β· LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising
- fedora 44: bsd-games 2.17-84.fc44 Β· LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising
- nixos 26.05: bsd-games 2.17
- nixpkgs unstable: bsd-games 2.17
- opensuse-leap 16.0: bsd-games 2.17-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: bsd-games 2.17-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: bsd-games 2.17-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: bsd-games 2.17-bp160.1.13 Β· BSD-3-Clause
- ubuntu jammy: bsdgames 2.17-29
- ubuntu resolute: bsdgames 2.17-35
- ubuntu stonking: bsdgames 2.17-35ubuntu1
- Copyright (c) 1994 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms