This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; P25 (*) Generate a random permutation of the elements of a list. | |
;; Example: | |
;; * (rnd-permu '(a b c d e f)) | |
;; (B A D C E F) | |
;; Hint: Use the solution of problem P23. | |
(require "p23.ss") | |
(define (rnd-permu lst) | |
(rnd-select lst (length lst))) |
0 件のコメント:
コメントを投稿