Skip to content

Commit c96e758

Browse files
carlossanlopjozkeegewarren
authored
Document System.Random.NextBytes (#3638)
* Document System.Random.NextBytes * suggestions by Jozkee and gewarren Co-Authored-By: David Cantu <[email protected]> Co-Authored-By: Genevieve Warren <[email protected]>
1 parent e227133 commit c96e758

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

xml/System/Random.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ The following example uses the parameterless constructor to instantiate three <x
706706
<Parameter Name="buffer" Type="System.Byte[]" />
707707
</Parameters>
708708
<Docs>
709-
<param name="buffer">An array of bytes to contain random numbers.</param>
709+
<param name="buffer">The array to be filled with random numbers.</param>
710710
<summary>Fills the elements of a specified array of bytes with random numbers.</summary>
711711
<remarks>
712712
<format type="text/markdown"><![CDATA[
@@ -761,9 +761,17 @@ The following example uses the parameterless constructor to instantiate three <x
761761
<Parameter Name="buffer" Type="System.Span&lt;System.Byte&gt;" Index="0" FrameworkAlternate="netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
762762
</Parameters>
763763
<Docs>
764-
<param name="buffer">To be added.</param>
765-
<summary>To be added.</summary>
766-
<remarks>To be added.</remarks>
764+
<param name="buffer">The array to be filled with random numbers.</param>
765+
<summary>Fills the elements of a specified span of bytes with random numbers.</summary>
766+
<remarks>
767+
<format type="text/markdown"><![CDATA[
768+
769+
## Remarks
770+
771+
Each element of the span of bytes is set to a random number greater than or equal to 0 and less than or equal to <xref:System.Byte.MaxValue>.
772+
773+
]]></format>
774+
</remarks>
767775
</Docs>
768776
</Member>
769777
<Member MemberName="NextDouble">

0 commit comments

Comments
 (0)