Share via


Random.NextBytes Method

Fills the elements of the specified array of bytes with random numbers.

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

Syntax

[MethodImplAttribute(InternalCall)]
public virtual void NextBytes (
         byte[] buffer
)

Parameters

  • buffer
    An array of bytes to contain random numbers.

Version Information

Available in the .NET Micro Framework version 4.1 and 4.2.

See Also

Reference

Random Class
Random Members
System Namespace