I know the basics about random function in Racket but I am trying to do something more difficult.
I am trying to develop a random function that gives randomly an element of a list I give to the function as parameter. For example:
‘(a h j l u) -> Output: h
‘(w t) -> Output: w
‘(l u t n) -> Output: t
Any help is welcome. Thank you!
Aucun commentaire:
Enregistrer un commentaire