Prolog: random permutation

后端 未结 0 944
猫巷女王i
猫巷女王i 2021-01-03 17:42

I\'m trying to get random permutation with prolog. But the problem is

?- permutation([1,2,3,4],L).

gives always L = [1, 2, 3, 4]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题