Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: random numbers


Message #1 by Vishnu Kumar <kumarvishnu@y...> on Mon, 18 Dec 2000 22:55:08 -0800 (PST)
Hi,

The name random itself specifies as random. Use Math.random(), which
generates a number between 0.0 and 1.0 that is either 0, less than unity or
unity. Then manipulate these numbers to generate between 10 and 40.

regards

--------------------------------------------------------------------
your earlier message:

----- Original Message -----
From: Vishnu Kumar <kumarvishnu@y...>
To: Pro_JavaServer_Pages <pro_jsp@p...>
Sent: Tuesday, December 19, 2000 12:25 PM
Subject: [pro_jsp] random numbers


> Hello all
>          here I have an basic question please help me
> out.Is there any way of generating the random numbers
> with in an particular range. (example---from 10 to 40)
>
>
> Kindly respond ASAP.
>             Thank you,
>                        Vishnu.

--- 
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 
Web Development, Networking & Communications, and Hardware & Systems.  
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to pro_jsp as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-pro_jsp-$subst('Recip.MemberIDChar')@p2p.wrox.com

  Return to Index