I am trying to use the takeSample() function in Spark , and the parameters are the data, the number of samples to take and the seeds . But I do not want to use the seed. I want to get different answers every time. I canβt understand how I can do this. I tried to use System.nanoTime as the initial value, but it gave an error since I think the data type did not match. Is there any other function similar to takeSample() that can be used without seed? Or there is another implementation that I can use with takeSample() to get different results each time.
source share