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 [EMAIL PROTECTED] | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]