You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System/Random.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -299,7 +299,7 @@ The following example uses the parameterless constructor to instantiate three <x
299
299
<paramname="length">The length of array to return.</param>
300
300
<summary>Creates an array populated with items chosen at random from the provided set of choices.</summary>
301
301
<returns>An array populated with random items.</returns>
302
-
<remarks>The method uses <seecref="M:System.Random.Next(System.Int32)" /> to select items randomly from <paramrefname="choices" /> by index. This is used to populate a newly-created array.</remarks>
302
+
<remarks>The method uses other methods from this instance to select items randomly from <paramrefname="choices" /> by index. This is used to populate a newly-created array. If a seed was provided to create the instance, the results of this method are deterministic, however changes in the algorithm employed may yield different results between major versions of .NET.</remarks>
@@ -363,7 +363,7 @@ The following example uses the parameterless constructor to instantiate three <x
363
363
<paramname="choices">The items to use to populate the span.</param>
364
364
<paramname="destination">The span to be filled with items.</param>
365
365
<summary>Fills the elements of a specified span with items chosen at random from the provided set of choices.</summary>
366
-
<remarks>The method uses <seecref="M:System.Random.Next(System.Int32)" /> to select items randomly from <paramrefname="choices" /> by index and populate <paramrefname="destination" />.</remarks>
366
+
<remarks>The method uses other methods on this instance to select items randomly from <paramrefname="choices" /> by index and populate <paramrefname="destination" />. If a seed was provided to create the instance, the results of this method are deterministic, however changes in the algorithm employed may yield different results between major versions of .NET.</remarks>
367
367
<exceptioncref="T:System.ArgumentException">
368
368
<paramrefname="choices" /> is empty.</exception>
369
369
</Docs>
@@ -413,7 +413,7 @@ The following example uses the parameterless constructor to instantiate three <x
413
413
<paramname="length">The length of array to return.</param>
414
414
<summary>Creates an array populated with items chosen at random from the provided set of choices.</summary>
415
415
<returns>An array populated with random items.</returns>
416
-
<remarks>The method uses <seecref="M:System.Random.Next(System.Int32)" /> to select items randomly from <paramrefname="choices" /> by index. This is used to populate a newly-created array.</remarks>
416
+
<remarks>The method uses other methods on this instance to select items randomly from <paramrefname="choices" /> by index. This is used to populate a newly-created array. If a seed was provided to create the instance, the results of this method are deterministic, however changes in the algorithm employed may yield different results between major versions of .NET.</remarks>
0 commit comments