Ok, I really have to thanks everybody for your answers, I now understand my mistake (stupid mistake : In fact I wanted a number between 0 and 1 ....). But I have to answer some stuffs :
First I'am not trying to build my own random number generator (I know the rand() perlfunction), I'am just trying this one which is named (I also know that it is not truly random) linear congruential method. I'am trying this one, because it IS deterministic and because it is widely used for Monte Carlo simulation (I'am not trying cryptography stuffs ....).
Second, one usefull and simple test of a random generator is to break a sequence of random numbers int blocks of k numbers, which are taken to be coordinates in a k-dimensional space. A good random number should give a random distribution of points, the linear congruential method (with good parameters) seems to give good results, and I wanted to see .... (I'am gonna try it to with the rand() for fun to!)
Third : Here's the formula :
u
1=seed
u
i=MOD{(u
i-1 x a + b),m}
Fourth : Next step Marsaglia Random Number Generator !