next up previous contents index
Next: Repeatable experiments Up: Placing processors Previous: asymmetric-cyclic-point-neighbours x y z

random-2d-points n procedure

  Create N points at random positions in the unit square. Returns two vectors of floating poit numbers, so use random-2d-points like this:

(call-with-values
    (lambda () (random-2d-points 1000))
  (lambda (xs ys)
     (let ((sim (%make-simulation xs ys (make-vector 1000 0.0))))
       ...)))


Erik Rauch
Sat May 8 16:42:57 EDT 1999