You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.jmd
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -34,12 +34,12 @@ using Random
34
34
pyplot()
35
35
```
36
36
37
-
First make a vector of points and a rectangle that contains the points:
37
+
First make a vector of points and a rectangle that contains the points (this README was first made when `MersenneTwister` was the default random number generator; I stick with this to make the results reproducible):
38
38
39
39
```julia
40
-
Random.seed!(1337)
40
+
rng = Random.MersenneTwister(1337)
41
41
rect = Rectangle(Point2(0, 0), Point2(1, 1))
42
-
points = [Point2(rand(), rand()) for _ in 1:10]
42
+
points = [Point2(rand(rng), rand(rng)) for _ in 1:10]
43
43
```
44
44
45
45
The main function of *VoronoiCells* is `voronoicells` that computes the cell of each generator point.
0 commit comments