function to generate random angle vector, calculation isn't producing perfect results