blob: a3ffbc0cbcbe5d44ee094853f639bd7c5dc50c6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
id = 127
number = 34
visible = False
facts = None
solution = '''\
genlist([], 0, _, _).
genlist([H|T], N, Min, Max):-
N > 0,
N1 is N - 1,
genlist(T, N1, Min, Max),
random(Min, Max, H).
'''
|