Version: 1.0

Type: Sample Code (HOWTO)

Category: Games

License: GNU General Public License

Description: This Script take words from a file and randomize them;) www.dawnofdreams.org



<?php
$array = file("fantasynames.txt");
$num = count($array);
$rand = rand("0",$num);
?>
<body bgcolor="#000000">
<font color="#ffffff" size="2"><center>Dark-Hiven Consiglia:<br><?=$array[$rand]?><br><input type="button" value="Chiudi" onclick="javascript:self.window.close();"></center></font>
</body>