Added Function @DataGenTask for a random cardinal direction