direction=point_direction(player.x,player.y)+random_range(-50,50) //or whatever you want the range to be
speed= //speed