I am trying to write recursive function that will generate figure with n random digits. To generate a numbers I want to use (random 10)
. I want function to decrease n until it reachs 0.
(define (generate-number n)
(if (= n 0) 0
(generate-number (- n 1))))
Can someone please help me where to place (random 10)
and make this work.
Aucun commentaire:
Enregistrer un commentaire