projog
FAQs
Manual
Download
4.14.
random(X)
Evaluate to a random integer i for which 0 =< i < X.
4.16.
integer(X)
- round X to the nearest integer value.
4.15.
rem
- finds the remainder of division of one number by another.
The result has the same sign as the dividend (i.e. first argument).
Examples
See
Prolog Arithmetic Operators
4.14.
random(X)
Evaluate to a random integer i for which 0 =< i < X.
4.16.
integer(X)
- round X to the nearest integer value.