Skip to content

Commit dc70757

Browse files
committed
Add missing doc for srandom/1
1 parent 400b4b5 commit dc70757

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

docs/docs/ref/is.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ _Arithmetic Functions_ can also be evaluated when their arguments can be evaluat
6060
| j1(X) | Bessel function of order 1 |
6161
| log(X) | natural logarithm |
6262
| log10(X) | base 10 logarithm |
63-
| random | returns a random floating point number such that 0.0 ≤ X < 1.0 |
63+
| random | returns a <span id=random>pseudo-random</span> floating point number such that 0.0 ≤ X < 1.0<br>(use [`srandom/1`](srandom.html) to initialize the <abbr title="Psuedo-Random Number Generator">PRNG</abbr>) |
6464
| realtime | actual time in seconds since ALS Prolog started |
6565
| round(X) | integer rounding of X |
6666
| sin(X) | sine |

docs/docs/ref/srandom.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: 'srandom/1'
3+
predicates:
4+
- {sig: 'srandom/1', desc: 'set seed for random number generator'}
5+
---
6+
7+
## FORMS
8+
9+
```
10+
srandom(Seed)
11+
```
12+
13+
## DESCRIPTION
14+
15+
Sets the initial seed value for future calls to [`is random`](is.html#random).
16+
`Seed` must be an integer.

0 commit comments

Comments
 (0)