Article View: es.comp.lenguajes.java
Article #26476Re: Random
From: OSCURO
Date: Wed, 30 Dec 1998 00:00
Date: Wed, 30 Dec 1998 00:00
24 lines
1012 bytes
1012 bytes
Muchas Thankyous.
Oriol Ventura.
Jonathan Revusky escribi� en mensaje <36821859.419AE85B@jet.es>...
>
>
>OSCURO wrote:
>>
>> �Como se puede generar un n�mero aleatorio definiendo el n�mero
m�nimo y
>> el m�ximo en el entorno de Java (como entre 1 y 1000) ?
>>
>> Gracias, Oriol Ventura.
>
>int randomint = (int) Math.round(1+Math.random()*1000);
>
>Jonathan Revusky
>--
>Java and Delphi Consulting
>Make your .class files double-clickable
>with SmartJ
>http://www.bigfoot.com/~crystalline.solutions
Technical Details
Message-ID:
<76fhgn$ifl@wendy.mad.servicom.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<75rjmd$e9k@wendy.mad.servicom.es> <36821859.419AE85B@jet.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 1116f3,3cbc411a756deed7 X-Google-Attributes: gid1116f3,public From: "OSCURO" <venturas@mx2.redestb.es> Subject: Re: Random Date: 1998/12/30 Message-ID: <76fhgn$ifl@wendy.mad.servicom.es> X-Deja-AN: 427412287 References: <75rjmd$e9k@wendy.mad.servicom.es> <36821859.419AE85B@jet.es> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: SERVICOM Newsgroups: es.comp.lenguajes.java