bonjour,
je suis bloqué sur la recupération de variables suand j'appel une fonction:

function generenb()
{
$rand = mt_rand(1000,9999);
return $rand;
$nb=2;
return $nb;
}

Comment puis je récupérer des variables $rand et $nb dans mon code principal?

merci pour votre aide!