RE: [PHP-ES] generar numero aleatorio
| From: | mario dot sanchez at multiasistencia dot com | Date: | Mon, 17 Mar 2008 16:05:14 +0000 |
| Subject: | RE: [PHP-ES] generar numero aleatorio | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-62369@lists.php.net to get a copy of this message | ||
http://www.php.net/rand
En www.php.net tienes el manual completo y con un gran buscador.
Saludos
"Julio Herrera - Chilered.com" <jherrera@chilered.com>
17/03/2008 16:51
Para
"'Lista PHP'" <php-es@lists.php.net>
cc
Asunto
RE: [PHP-ES] generar numero aleatorio
Paradix:
Yo ocupo:
$VARIABLE = substr(md5(uniqid(rand(),1)), 0, 26);
Para que me genero un string alfanumerico de 26 digitos.
Julio Herrera
Chilered.com
-----Mensaje original-----
De: Paradix ;) [mailto:raynerl@infomed.sld.cu]
Enviado el: Lunes, 17 de Marzo de 2008 01:40 p.m.
Para: Lista PHP; Desarrollo de Aplicaciones con Software Libre
Asunto: [PHP-ES] generar numero aleatorio
¿como se puede generar un numero aleatorio en php? estoy buscando algo
parecido a VBasic como rnd()
--
Paradix ;)
Haciendo abogacía por el software libre adonde voy
--
PHP Spanish Localization Talk Mailing List (http://www.php.net/) To
unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Spanish Localization Talk Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php