]> Repositorios git - scryer-prolog.git/commitdiff
include usage advice about probabilistic predicates
authorMarkus Triska <[email protected]>
Mon, 27 Apr 2020 15:32:06 +0000 (17:32 +0200)
committerMarkus Triska <[email protected]>
Mon, 27 Apr 2020 16:44:59 +0000 (18:44 +0200)
src/prolog/lib/random.pl

index 7e59fc23176abc6007a62c7ae065fe4cf06bae91..5fee57e0b086bebc6497912f0f671a15b1471d48 100644 (file)
@@ -1,5 +1,11 @@
 :- module(random, [maybe/0, random/1, random_integer/3, set_random/1]).
 
+/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+   To retain desirable declarative properties, predicates that internally
+   use random numbers should be equipped with an argument that specifies
+   the random seed. This makes everything completely reproducible.
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
+
 % succeeds with probability 0.5.
 maybe :- '$maybe'.