All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.kusto.ingest.utils.DefaultRandomProvider Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy