Documentation for sub srand assembled from the following pages:

Class: Num §

From Num

(Num) sub srand §

sub srand(Int $seed --> Int:D)

Seeds the pseudo random number generator used by Num.rand with the provided value. Note that srand is called with a platform dependent value when a Raku program is started.