Article View: es.comp.lenguajes.java
Article #26514Re: Pregunta sobre el random
From: D. G. Buru
Date: Tue, 22 Dec 1998 00:00
Date: Tue, 22 Dec 1998 00:00
24 lines
1398 bytes
1398 bytes
Rafael Osuna escribi�:
> Hola!
>
> Mi pregunta al grupo es la siguiente, �Que puedo utilizar para hacer
> un random, igual que en c, en un javascript de una pagina web? hay
> alguna funcion especifica, la funcion math.random() solo devuelve 0 o 1,
> no me sirve, yo quiero un random de verdad :-)
>
> Gracias y un saludo a todos.
Mira la clase java.lang.Math, hay un metodo llamado random que devulve
numeros pseudoaleatorios entre 0.0 y 1.0
Salu2.
--
//// ///// ///// // // ///// // //
// // // // // // // // // // //
// // // /// ///// // // ///// // //
// // // // // // // // // // // //
//// * ////// * ///// //////// // // ////////
i1437792@petra.euitio.uniovi.es uov00854@correo.uniovi.es
Technical Details
Message-ID:
<367FC094.6C067654@correo.uniovi.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<367EC79E.B8FA293D@santandersupernet.com>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 1116f3,ccf22a38740b2927 X-Google-Attributes: gid1116f3,public From: "D. G. Buru" <uov00854@correo.uniovi.es> Subject: Re: Pregunta sobre el random Date: 1998/12/22 Message-ID: <367FC094.6C067654@correo.uniovi.es> X-Deja-AN: 424960949 Content-Transfer-Encoding: 8bit References: <367EC79E.B8FA293D@santandersupernet.com> To: Rafael Osuna <ROSUNA@santandersupernet.com> Content-Type: text/plain; charset=iso-8859-1 Organization: Telefonica Transmision de Datos Mime-Version: 1.0 Newsgroups: es.comp.lenguajes.java