diff --git a/pkg/game/atlas.go b/pkg/game/atlas.go index d5d9a5a..ac0b9c5 100644 --- a/pkg/game/atlas.go +++ b/pkg/game/atlas.go @@ -54,7 +54,7 @@ func (a *Atlas) SpawnWorld() error { // Pepper the current world with rocks for i := -extent; i < extent; i++ { for j := -extent; j < extent; j++ { - if rand.Int()%16 == 0 { + if rand.Intn(16) == 0 { if err := a.SetTile(Vector{i, j}, TileRock); err != nil { return err }