How do I pick a random point on an axis?

I need to select a random point on this part’s X and Y axis, how would I do that?

local rng = Random.new()
local cf = part.CFrame * CFrame.new(
	part.Size.X * rng:NextNumber(-.5,.5),
	part.Size.Y * rng:NextNumber(-.5,.5),
	0
)
local pos = cf.p

Note: this is along the X(left right) and Y(up down)

If you want it on the face of the part, you would want to set the unused axis from 0 to half of the part’s size on that axis.