Example usage for org.apache.commons.math3.random BitsStreamGenerator nextInt

List of usage examples for org.apache.commons.math3.random BitsStreamGenerator nextInt

Introduction

In this page you can find the example usage for org.apache.commons.math3.random BitsStreamGenerator nextInt.

Prototype

public int nextInt() 

Source Link

Usage

From source file:cc.redberry.core.performance.StableSort.java

public static int[] nextArray(int length, BitsStreamGenerator bsg) {
    int[] a = new int[length];
    for (int i = 0; i < length; ++i)
        a[i] = bsg.nextInt();
    return a;//  w ww.  j av a  2s .  c  o  m
}