Anonymous user
Constrained random points on a circle: Difference between revisions
Constrained random points on a circle (view source)
Revision as of 08:44, 15 July 2013
, 10 years ago→{{header|Scala}}
Line 2,023:
//points:
val
.zip(new Iterator[Int] {val r = new Random; def next = r.nextInt(31)-15; def hasNext = true}.toStream)
.
override def paintComponent(g: Graphics2D) = {
|