<dependency>
<groupId>com.carrotsearch.randomizedtesting</groupId>
<artifactId>randomizedtesting-runner</artifactId>
<version>2.6.0</version>
</dependency>
testImplementation 'com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.6.0'
import com.carrotsearch.randomizedtesting.RandomizedRunner;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(RandomizedRunner.class)
public class MyRandomizedTest {
@Test
public void myRandomizedTest() {
}
}