Skip to content

Commit 0128905

Browse files
rivermarxin
authored andcommitted
Updated programming-guide.md
Made sure that readers know the random number generator seed argument, within the 'takeSample' method, is optional. Author: Rishi Verma <[email protected]> Closes #1324 from riverma/patch-1 and squashes the following commits: 4699676 [Rishi Verma] Updated programming-guide.md
1 parent 50561f4 commit 0128905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/programming-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,8 +975,8 @@ for details.
975975
<td> Return an array with the first <i>n</i> elements of the dataset. Note that this is currently not executed in parallel. Instead, the driver program computes all the elements. </td>
976976
</tr>
977977
<tr>
978-
<td> <b>takeSample</b>(<i>withReplacement</i>, <i>num</i>, <i>seed</i>) </td>
979-
<td> Return an array with a random sample of <i>num</i> elements of the dataset, with or without replacement, using the given random number generator seed. </td>
978+
<td> <b>takeSample</b>(<i>withReplacement</i>, <i>num</i>, [<i>seed</i>]) </td>
979+
<td> Return an array with a random sample of <i>num</i> elements of the dataset, with or without replacement, optionally pre-specifying a random number generator seed.</td>
980980
</tr>
981981
<tr>
982982
<td> <b>takeOrdered</b>(<i>n</i>, <i>[ordering]</i>) </td>

0 commit comments

Comments
 (0)