This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.

4 lines
177 B
MiniZinc

predicate assign_random(array[int] of var int: X, int: R) =
forall (i in index_set(X))
(if uniform(1,100) < R then X[i] = sol(X[i]) else true endif);