random (6)
Leading comments
$NetBSD: random.6,v 1.6 2003/08/07 09:37:35 agc Exp $ Copyright (c) 1994 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright ...
NAME
random - random lines from a file or random numbersSYNOPSIS
[-er ] [denominator ]
DESCRIPTION
reads lines from the standard input and copies them to the standard output with a probability of 1/denominator. The default value for denominator is 2.The options are as follows:
- -e
- If the -e option is specified, does not read or write anything, and simply exits with a random exit value of 0 to denominator -1 inclusive.
- -r
- The -r option guarantees that the output is unbuffered.