version 1.52, 2020/06/13 01:21:01 |
version 1.53, 2020/06/17 15:34:11 |
|
|
.Sm off |
.Sm off |
.Pf 0 \*(Le Fa n No \*(Lt 1 . |
.Pf 0 \*(Le Fa n No \*(Lt 1 . |
.Sm on |
.Sm on |
|
Random numbers are non-deterministic unless a seed is explicitly set with |
|
.Fn srand . |
.It Fn sin x |
.It Fn sin x |
Return the sine of |
Return the sine of |
.Fa x , |
.Fa x , |
|
|
and returns the previous seed. |
and returns the previous seed. |
If |
If |
.Fa expr |
.Fa expr |
is omitted, the time of day is used instead. |
is omitted, |
|
.Fn rand |
|
will return non-deterministic random numbers. |
.El |
.El |
.Ss String Functions |
.Ss String Functions |
.Bl -tag -width "split(s, a, fs)" |
.Bl -tag -width "split(s, a, fs)" |
|
|
are not collapsed and a slash |
are not collapsed and a slash |
.Pq Ql / |
.Pq Ql / |
does not need to be escaped in a bracket expression. |
does not need to be escaped in a bracket expression. |
|
Also, the behaviour of |
|
.Fn rand |
|
and |
|
.Fn srand |
|
has been changed to support non-deterministic random numbers. |
.Pp |
.Pp |
The flags |
The flags |
.Op Fl \&dV |
.Op Fl \&dV |