Random initialization of phi and theta