I'm using LPA WIN-PROLOG and I want to get random values. I looked for a random predicate and I don't find one that is already defined. What I tried:
X is random(10)
random(1,10,X)
Can someone help me find the way to get a random value?
Thanks.
Aucun commentaire:
Enregistrer un commentaire