src/gen-util.c
void rand_dir(int *rdir, int *cdir)
{
    /* Pick a random direction and extract the dy/dx components */
    int i = randint0(4);
    *rdir = ddy_ddd[i];
    *cdir = ddx_ddd[i];
}
/**
 * Pick a random cardinal direction.
 * \param rdir
 * \param cdir direction co-ordinates
 */
Pick a random cardinal direction.
\param rdir
\param cdir direction co-ordinates
Pick a random cardinal direction . \ param rdir \ param cdir direction co - ordinates
void rand_dir(int *rdir, int *cdir)
{
    int i = randint0(4);
    *rdir = ddy_ddd[i];
    *cdir = ddx_ddd[i];
}
void rand_dir ( int * rdir , int * cdir ) { int i = randint0 ( 4 ) ; * rdir = ddy_ddd [ i ] ; * cdir = ddx_ddd [ i ] ; }
Pick a random cardinal direction.
Pick a random cardinal direction .
/* Pick a random direction and extract the dy/dx components */