randomize over phi