RandomNumberGenerator.Create Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When overridden in a derived class, creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public static RandomNumberGenerator Create()

Return Value

Type: System.Security.Cryptography.RandomNumberGenerator

A new instance of a cryptographic random number generator.

.NET Framework
Available since 1.1
Return to top