121 lines
3.9 KiB
Groff
121 lines
3.9 KiB
Groff
.\" 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
|
||
.\" notice, this list of conditions and the following disclaimer in the
|
||
.\" documentation and/or other materials provided with the distribution.
|
||
.\" 3. All advertising materials mentioning features or use of this software
|
||
.\" must display the following acknowledgment:
|
||
.\" This product includes software developed by the University of
|
||
.\" California, Berkeley and its contributors.
|
||
.\" 4. Neither the name of the University nor the names of its contributors
|
||
.\" may be used to endorse or promote products derived from this software
|
||
.\" without specific prior written permission.
|
||
.\"
|
||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
.\" SUCH DAMAGE.
|
||
.\"
|
||
.\" @(#)random.6 8.2 (Berkeley) 3/31/94
|
||
.\" %FreeBSD: src/games/random/random.6,v 1.7 2003/02/23 01:44:14 ru Exp %
|
||
.\" $FreeBSD$
|
||
.\"
|
||
.Dd February 8, 2003
|
||
.Dt RANDOM 6
|
||
.Os
|
||
.Sh ̾¾Î
|
||
.Nm random
|
||
.Nd ¥Õ¥¡¥¤¥ë¤«¤é¤Î¥é¥ó¥À¥à¤Ê¹ÔÁªÂò¡¢¤¢¤ë¤¤¤ÏÍð¿ô
|
||
.Sh ½ñ¼°
|
||
.Nm
|
||
.Op Fl elrUuw
|
||
.Op Fl f Ar filename
|
||
.Op Ar denominator
|
||
.Sh ²òÀâ
|
||
.Nm
|
||
¤Ï 2 ¤Ä¤Î°Û¤Ê¤ëưºî¥â¡¼¥É¤¬¤¢¤ê¤Þ¤¹¡£
|
||
¥Ç¥Õ¥©¥ë¥È¤Ï¡¢É¸½àÆþÎϤιԤòÆÉ¤ß¼è¤ê¡¢
|
||
1 /
|
||
.Ar denominator
|
||
¤Î³ÎΨ¤Ç¤½¤ì¤é¤òɸ½à½ÐÎϤؽñ¤¹þ¤à¤³¤È¤Ç¤¹¡£
|
||
¤³¤Îưºî¥â¡¼¥É¤Ç¤Î¥Ç¥Õ¥©¥ë¥È¤Î
|
||
.Ar denominator
|
||
¤Ï 2 ¤Ç¤¢¤ê¡¢³Æ¹Ô¤¬É½¼¨¤µ¤ì¤ë³ÎΨ¤Ï 50/50 ¤Ç¤¹¡£
|
||
.Pp
|
||
Âè 2 ¤Îưºî¥â¡¼¥É¤Ï¡¢
|
||
.Ar filename
|
||
¤«¤é¥Õ¥¡¥¤¥ë¤òÆÉ¤ß¼è¤ê¡¢¥Õ¥¡¥¤¥ë¤ÎÃæ¿È¤ò¤«¤º®¤¼¡¢
|
||
¤³¤ì¤òɸ½à½ÐÎϤØÁ÷¤ë¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£
|
||
¥Õ¥¡¥¤¥ëÆâÍÆ¤Ï¡¢²þ¹Ô¤Þ¤¿¤Ï
|
||
.Xr isspace 3
|
||
¤ÇȽÄꤵ¤ì¤ë¶õÇòʸ»ú¤ò¤â¤È¤Ë¡¢¤«¤º®¤¼¤é¤ì¤Þ¤¹¡£
|
||
¤³¤Îưºî¥â¡¼¥É¤Ç¤Î¥Ç¥Õ¥©¥ë¥È¤Î
|
||
.Ar denominator
|
||
¤Ï 1 ¤Ç¤¢¤ê¡¢³Æ¹Ô¤Ïɽ¼¨¤µ¤ì¤Þ¤¹¤¬
|
||
.Xr random 3
|
||
½ç¤È¤Ê¤ê¤Þ¤¹¡£
|
||
.Pp
|
||
¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
|
||
.Bl -tag -width Ds
|
||
.It Fl e
|
||
.Fl e
|
||
¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¡¢
|
||
.Nm
|
||
¤Ï²¿¤âÆÉ¤ß½ñ¤¤»¤º¡¢ 0 ¤«¤é
|
||
.Ar denominator
|
||
\&- 1 ¤Þ¤Ç¤ÎÀ°¿ô¤«¤é¥é¥ó¥À¥à¤ËÁª¤ó¤ÀÃͤòÊÖ¤êÃͤȤ·¤Æ
|
||
¤½¤Î¤Þ¤Þ½ªÎ»¤·¤Þ¤¹¡£
|
||
.It Fl f Ar filename
|
||
.Fl f
|
||
¥ª¥×¥·¥ç¥ó¤Ï¡¢ÆÉ¤ß¼è¤ë
|
||
.Ar filename
|
||
¤ò»ØÄꤹ¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤Þ¤¹¡£
|
||
.Ar filename
|
||
¤¬
|
||
.Sq Fl
|
||
¤Î¾ì¹ç¡¢É¸½àÆþÎϤ¬»ÈÍѤµ¤ì¤Þ¤¹¡£
|
||
.It Fl l
|
||
²þ¹Ô¤ÇÆþÎϤò¤«¤º®¤¼¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È)¡£
|
||
.It Fl r
|
||
.Fl r
|
||
¥ª¥×¥·¥ç¥ó¤Ï¡¢½ÐÎϤ¬¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Ê¤¤¤³¤È¤òÊݾڤ·¤Þ¤¹¡£
|
||
.It Fl U
|
||
¤«¤º®¤¼¤¿½ÐÎϤòºîÀ®¤¹¤ë¤È¤¤Ë¡¢Æ±¤¸¹Ô¤ä¸ì¤òºÆÍøÍѤ·¤ÆÎɤ¤¤³¤È¤ò
|
||
.Xr random 6
|
||
¤Ë»Ø¼¨¤·¤Þ¤¹¡£
|
||
.It Fl u
|
||
Ʊ¤¸¹Ô¤Þ¤¿¤Ï¸ì¤ò¥Õ¥¡¥¤¥ë¤«¤éÁªÂò¤·¤Ê¤¤¤è¤¦
|
||
.Xr random 6
|
||
¤Ë»Ø¼¨¤·¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È)¡£
|
||
ÆþÎÏ¤ËÆ±¤¸¥È¡¼¥¯¥ó¤¬Ê£¿ô¸Ä¤¢¤ë¾ì¹ç¤Ë¤Ï°ì°ÕÀ¤òÊݾڤ·¤Þ¤»¤ó¤¬¡¢
|
||
Ʊ¤¸¥È¡¼¥¯¥ó¤¬Ê£¿ô²óÁªÂò¤µ¤ì¤ë¤³¤È¤Ï˸¤²¤Þ¤¹¡£
|
||
.It Fl w
|
||
²þ¹Ô¤Ç¤Ï¤Ê¤¯¡¢
|
||
.Xr isspace 3
|
||
¤Ç¶èÀÚ¤é¤ì¤ë¸ì¤ò¡¢¤«¤º®¤¼¤Þ¤¹¡£
|
||
.El
|
||
.Sh ´ØÏ¢¹àÌÜ
|
||
.Xr random 3 ,
|
||
.Xr fortune 6
|
||
.Sh ¥Ð¥°
|
||
¥È¡¼¥¯¥óɽ¼¨»þ¤Ë¤Ï¥¤¥ó¥Ç¥Ã¥¯¥¹¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤»¤ó¡£
|
||
¤³¤Î¤¿¤á¡¢Â礤ʥե¡¥¤¥ë (10MB+) ¤Ç¤ÏÃÙ¤¯¤Ê¤ë¤Ç¤·¤ç¤¦¡£
|
||
Àǽ¤Î±Æ¶Á¤ò¼õ¤±¤ëÎΰè¤Ç¤³¤ì¤ò»ÈÍѤ¹¤ë¤Î¤Ç¤·¤¿¤é¤Ð¡¢¹©Éפ·¤¿¤Ç¤·¤ç¤¦¡£
|
||
¤·¤«¤·¤Ê¤¬¤é¡¢¾®¤µ¤Ê¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ¤Ï½½Ê¬¤Ë¹â®¤Ç¸úΨŪ¤Ç¤¹¡£
|
||
.Sh Îò»Ë
|
||
¹Ô¤ä¸ì¤ò¤«¤º®¤¼¤ëµ¡Ç½¤Ï¡¢2003 ¤Ë
|
||
.An "Sean Chittenden" Aq seanc@FreeBSD.org
|
||
¤¬Äɲä·¤Þ¤·¤¿¡£
|