ECL: How to choose k elements from a dataset of N records?

Solution 1:

Problem: randds (in line 9) can have repeated numbers.

Solution 2:

Problem: There is a certain pattern to this sampled data.

Solution 3:

Problem: This is slow.

Comments

Popular posts from this blog

How to set up a Spark multi-node cluster on AWS-EC2

How to use REST based calls to submit spark jobs