1
|canvas s stats points|
b'points :=Array new: 12.'
b'stats := Array new: 12 withAll: 0.'
b'canvas := DrGeoCanvas new.'
b'\tpoints at: i put: (canvas point: i@0.1).'
b'\t(points at: i) square; color: Color blue.'
b'\ts := canvas segment: i@0 to: (points at: i).'
b'\ts color: Color red].'
b'\t1 to: 10000 do: [:i|'
b'\t\ts := 6 atRandom + 6 atRandom.'
b'\t\tstats at: s put: ((stats at: s)+1).'
b'\t\t\tname: (stats at: s) asString;'
b'\t\t\tmoveTo: s @ ((stats at: s) / 100).'
b'\t\t(points at: i) name: (stats at: i) / 100.0]].'
b'\\ No newline at end of file'