Random.Shared Property

Definition

Provides a thread-safe Random instance that may be used concurrently from any thread.

public static Random Shared { get; }

Property Value

A Random instance.

Applies to

Prodotto Versioni
.NET 6, 7, 8, 9