function roll () { return mt_rand(1,6); } echo roll(); function roll ($sides) { return mt_rand(1,$sides); } echo roll(6); // roll a six-sided die echo roll(10); // roll a ten-sided die echo roll(20); // roll a twenty-sided die $male = array( "William", "Henry", "Filbert", "John", "Pat", ); $last = array( "Smith", "Jones", "Winkler", "Cooper", "Cline", ); shuffle($male); shuffle($last); for ($i = 0; $i \n"; $suits = array ( "Picas", "Corazones", "Tréboles", "Diamantes" ); $faces = array ( "Dos", "Tres", "Cuatro", "Cinco", "Seis", "Siete", "Ocho", "Nueve", "Diez", "J", "Q", "K", "As" ); $deck = array(); foreach ($suits as $suit) { foreach ($...
Buscar este blog
html