Use Random.Shared.Next(0, 100).
`Random.Shared` (added in .NET 6) is the thread-safe, zero-allocation way to get random numbers — the right default for game spawns.
Print a random integer in [0, 100) using `Random.Shared.Next(0, 100)`.
Sign in to save your code and track progress across devices.