com.microsoft.azure.kusto.ingest.utils.DefaultRandomProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kusto-ingest Show documentation
Show all versions of kusto-ingest Show documentation
Kusto client library for ingesting data
package com.microsoft.azure.kusto.ingest.utils;
import java.util.Collections;
import java.util.List;
import java.util.Random;
public class DefaultRandomProvider implements RandomProvider {
public Random random;
public DefaultRandomProvider(Random random) {
this.random = random;
}
public DefaultRandomProvider() {
this.random = new Random();
}
@Override
public void shuffle(List> list) {
Collections.shuffle(list, random);
}
}