Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/04/2015, 19:35
oggy_15_3
 
Fecha de Ingreso: marzo-2015
Mensajes: 183
Antigüedad: 9 años, 1 mes
Puntos: 8
Respuesta: Generar palabras aleatorias

Cita:
Iniciado por oggy_15_3 Ver Mensaje
Que tal usando una función con los mismos parámetros que la funcion Rnd()

function fRandomPalabras($nIndexIni,$nIndexFin){
$aPalabras=array("Manzana","Pera","Naranja");
$nIndexRandom=rand($nIndexIni,$nIndexFin);
return $aPalabras[$nIndexRandom];
}
echo fRandomPalabras(0,2);