static char* pos = "\010\007\001\003\004\005\002\006\0";
static char pos[] = "\010\007\001\003\004\005\002\006\0";
rand_around(i, r, c)	short i, *r, *c;{	static char* pos = "\010\007\001\003\004\005\002\006\0";	static short row, col;	short j;	if (i == 0) {		short x, y, o, t;		row = *r;		col = *c;		o = get_rand(1, 8);		for (j = 0; j < 5; j++) {			x = get_rand(0, 8);			y = (x + o) % 9;			t = pos[x];			pos[x] = pos[y];			pos[y] = t;		}	}	switch((short)pos[i]) {	case 0:		*r = row + 1;		*c = col + 1;		break;	case 1:		*r = row + 1;		*c = col - 1;		break;	case 2:		*r = row - 1;		*c = col + 1;		break;	case 3:		*r = row - 1;		*c = col - 1;		break;	case 4:		*r = row;		*c = col + 1;		break;	case 5:		*r = row + 1;		*c = col;		break;	case 6:		*r = row;		*c = col;		break;	case 7:		*r = row - 1;		*c = col;		break;	case 8:		*r = row;		*c = col - 1;		break;	}}