Skip to content

Commit 590cf0d

Browse files
committed
doc sub srand
1 parent 499b197 commit 590cf0d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/Type/Num.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,12 @@ float point not-a-number value. It is defined and boolifies to True. C<NaN> is
1717
the result of undefined float point number operations and depends on the CPU or
1818
software implementation of float point numbers on the system running the code.
1919
20+
=head2 sub srand
21+
22+
sub srand(Int $seed) returns Int:D
23+
24+
Seeds the pseudo random number generator used by L<Num.rand|/typeNum#rand) with
25+
the provided value. Note that C<srand> is called with a platform dependent
26+
value when a Perl 6 program is started.
27+
2028
=end pod

0 commit comments

Comments
 (0)