Constrained random points on a circle: Difference between revisions

→‎{{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.NanosecondsNow().UnixNano())
// generate random points, accumulate 100 distinct points meeting condition
m := make(map[int]pt) // key is buffer index
Line 651:
"bytes"
"fmt"
"math/rand"
)
 
1,707

edits