Constrained random points on a circle: Difference between revisions
Constrained random points on a circle (view source)
Revision as of 20:44, 2 December 2011
, 12 years ago→{{header|Go}}: library change
m (→{{header|Ruby}}: add image) |
(→{{header|Go}}: library change) |
||
Line 616:
"bytes"
"fmt"
"math/rand"
"time"
)
Line 625:
func main() {
rand.Seed(time.
// generate random points, accumulate 100 distinct points meeting condition
m := make(map[int]pt) // key is buffer index
Line 651:
"bytes"
"fmt"
"math/rand"
)
|