From owner-freebsd-questions Fri Nov 23 10:24:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gaia.host4u.net (gaia.host4u.net [209.150.128.48]) by hub.freebsd.org (Postfix) with ESMTP id 6412737B419 for ; Fri, 23 Nov 2001 10:24:23 -0800 (PST) Received: from andre ([216.71.43.117]) by gaia.host4u.net (8.8.5/8.8.5) with SMTP id MAA30517; Fri, 23 Nov 2001 12:21:39 -0600 Message-ID: <00f501c1744b$c320a3f0$a50410ac@olmct.net> Reply-To: "Andre` Niel Cameron" From: "Andre` Niel Cameron" To: "Edwin Groothuis" Cc: "free bsd" , , References: <034601c173cb$8edfee00$a50410ac@olmct.net> <20011123142616.D58388@k7.mavetju.org> Subject: Re: Quick question Date: Fri, 23 Nov 2001 13:22:08 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yup should have sent it to one list was TOTALLY spacing that question;) Sorry for asking such a dumb question;) I was in a hurry and needed an answer should have just thought about it for a second. I appreciate the 34 responses I got though:) Regards, Andre` C. Technical Support ԿԬ ---------------------------------------------------------------------------- - Visit our support manual at http://supportmanual.com/ ----- Original Message ----- From: "Edwin Groothuis" To: "Andre` Niel Cameron" Cc: "free bsd" ; ; Sent: Thursday, November 22, 2001 10:26 PM Subject: Re: Quick question > On Thu, Nov 22, 2001 at 10:04:24PM -0500, Andre` Niel Cameron wrote: > > Anyone know how to get a whole random number in perl? > > > > rand(18) always gives decimals I need just like 12 or 7 anyone know? > > Multiply it by the maximum number you want, for example if you want > something between [1,20] you do int(rand()*20 + 1) > > Edwin, wondering if you couldn't have sent it to just one mailing-list. > > -- > Edwin Groothuis | Personal website: http://www.MavEtJu.org > edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: > ------------------+ http://www.FatalDimensions.org/ > > -- > To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org > For additional commands, e-mail: beginners-cgi-help@perl.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message