%By: Ryan Swenton rnPrint(0). rnPrint(X):- random(0,10,R), write(R),nl, Y is X-1, rnPrint(Y). rnList(0,[]). rnList(X,List):- R is X-1, rnList(R, L2), random(0,10,Z), append(L2,[Z],List).