dimanche 14 août 2022

What happens when you use srand with no arguments?

The question is pretty straightforward. What exactly happens when you use "srand" with no arguments? What is the expected behavior?

srand();
my $x1 = int(rand(65536)) % 65536;
my $x2 = int(rand(65536)) % 65536;
print "$x1\n";
print "$x2\n";



Aucun commentaire:

Enregistrer un commentaire