Lines Matching defs:seed
7 build_monster($_REQUEST['seed'], $_REQUEST['size']);
10 * Generates a monster for the given seed
13 function build_monster($seed='',$size='') {
14 // create 16 byte hash from seed
15 $hash = md5($seed);
17 // calculate part values from seed
53 // restore random seed
54 if($seed) srand();
73 function _get_monster_part($seed, $lower = 0, $upper = 255) {
74 return hexdec($seed) % ($upper - $lower) + $lower;