Random direction generation update.