Modified random distribution: Difference between revisions
Content deleted Content added
Line 538:
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.stream.Stream;
Line 552 ⟶ 551:
final double binSize = 1.0 / binCount;
List<Integer> bins = Stream.generate( () -> 0 ).limit(binCount)
for ( int i = 0; i < sampleSize; i++ ) {
|