my post dont intend on find the integrals. it was just to find the floating randon numders starting from [0 to PI/2].

and why the reason for casting? is to avoid integer div and to overcome the problem of int overflow

ssharish2005