Math.random() equalent function

Hello,

 

is there any euqalent function in C to Math.random() function in JavaScript?

 

Math.random()--output in JavaScript-->0.047033395492444674 (which will generate a random number between 0<=rand<1).

 

Any c-function or loadrunner function available which will give similar type of random number? pls suggest.

 

Thanks in advance.

 

Ajay