(require (planet "random-source.ss" ("williams" "science.plt" 2 0))) (require (planet "discrete-histogram-with-graphics.ss" ("williams" "science.plt" 2 0))) (let ((h (make-discrete-histogram)) (s (make-random-source))) (random-source-randomize! s) (with-random-source s (do ((i 0 (+ i 1))) ((= i 10000) (void)) (discrete-histogram-increment! h (random-uniform-int 10)))) (discrete-histogram-plot h "Histogram of Uniform Random Integers"))