diff --git a/docs/programming-guide.md b/docs/programming-guide.md
index 06e4c4ce527e..b09d6347cd1b 100644
--- a/docs/programming-guide.md
+++ b/docs/programming-guide.md
@@ -975,8 +975,8 @@ for details.
Return an array with the first n elements of the dataset. Note that this is currently not executed in parallel. Instead, the driver program computes all the elements. |
- | takeSample(withReplacement, num, seed) |
- Return an array with a random sample of num elements of the dataset, with or without replacement, using the given random number generator seed. |
+ takeSample(withReplacement, num, [seed]) |
+ Return an array with a random sample of num elements of the dataset, with or without replacement, optionally pre-specifying a random number generator seed. |
| takeOrdered(n, [ordering]) |