(loop with repeatitions = 1000000
with R = 16
with counts = (make-array 16 :initial-element 0)
repeat repeatitions
for x = (random R)
do (incf (aref counts x))
finally (return (map 'vector
(lambda (count) (/ count (float repeatitions 1.0d0)))
counts)))
#(0.062412D0 0.062663D0 0.062758D0 0.062578D0 0.062252D00.063027D0 0.06256D0 0.062532D0 0.062121D0 0.062455D0
0.06234D0 0.062332D0 0.062452D0 0.062679D0 0.062388D0
0.062451D0)
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (1 / 5) |
| Uptime: | 23:41:04 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
6 files (8,794K bytes) |
| Messages: | 186,855 |
| Posted today: | 1 |