In response to Kakashi24142
Ah, whoops. I forgot about invalid flags.
In response to Kakashi24142
Get it done without using so many procs...
proc/rand_dir()
var/n=rand(1,8)
return (n&SOUTH)&&(n&NORTH) ? ((n+1)>>2)|8 : n
This will get any number from 1 to 8, except when it gets 3, it will return 9 and when it gets 7 it will return 10.
Page: 1 2