:- use_module(library(random)).
randseq(K, N, List) :- randset(K, N, Set), random_permutation(Set, List).