The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
RandomNumberGenerator::GetBytes Method (array<Byte>^)
.NET Framework (current version)
When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of values.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- data
-
Type:
array<System::Byte>^
The array to fill with cryptographically strong random bytes.
The length of the byte array determines how many random bytes are produced.
The following example creates a random sequence 100 bytes long and stores it in random.
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: