From 0128905eea9f8c597ca238b14c18908995511e76 Mon Sep 17 00:00:00 2001 From: Rishi Verma Date: Tue, 8 Jul 2014 00:29:23 -0700 Subject: Updated programming-guide.md Made sure that readers know the random number generator seed argument, within the 'takeSample' method, is optional. Author: Rishi Verma Closes #1324 from riverma/patch-1 and squashes the following commits: 4699676 [Rishi Verma] Updated programming-guide.md --- docs/programming-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/programming-guide.md') diff --git a/docs/programming-guide.md b/docs/programming-guide.md index 06e4c4ce52..b09d6347cd 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]) -- cgit v1.2.3