Quote:
this returns big values while the vallues need to range between 1 and 9999999
No, this code return nothing because it does not compile. Show real code.
Looks like you need to study the
rand()
function too.
<French>
rand()*RAND_MAX/10 - rand()%10000
L'utilisation de plusieurs rand() ne rendra pas le resultat plus aléatoire, c'est inutile.
nombreMystere
n'es tpas declaré dans ton code, ça provoque une erreur de compilation.
</;French>