400
Describe a method for generating random numbers over the interval [0,1) with the distribution
P(x) dx = pi * x * sin( pi*x ) * dx
Choose a random uniform deviate x in the interval [0,1). Choose a second random number, y. If y < pi*x*sin(pi*x), then use than number, or else start over again with a new value of x.