CFrame using Angles

I am making a random maze generation game and have been trying to figure out how to rotate the structures. I am using SetPrimaryPartCFrame(), and rotation doesn’t appear to work.
Apparently Angles() uses some strange obscure method of rotation that isn’t direct degrees. I have a randomization code for degrees, and don’t know how I would be able to fit it in.
Is there a CFrame system for using degrees to rotate something?

The code looks like this as of now:

clone:SetPrimaryPartCFrame(CFrame.new(script.Parent.Position) * CFrame.hereswhereineedhelpat(0, direction*90, 0)) --direction is a randomized value

you need to do

 CFrame.Angles(math.rad(randNum), math.rad(randNum), math.rad(randNum))