(Random number with uniform distribution over [0, 1])
For clarification, in the case where N = 2, we can use geometric probability. On the coordinate plane consider points with 0<=x,y<=1. The condition is satisfied on a diagonal band of area 3/4 from the origin to (1,1). Similarly, with N = 3 the volume of the space in which the condition is satisfied is 7/27.