public <E extends SamplingEntry> Iterable<E> getRandomSamples(int sampleCount) {
        if (sampleCount < 0) {
            throw new IllegalArgumentException("Sample count cannot be a negative value.");
        }
        if (sampleCount == 0 || size() == 0) {
            return Collections.EMPTY_LIST;
        }
        return new LazySamplingEntryIterableIterator<E>(sampleCount);
    }
public < E extends SamplingEntry > Iterable < E > getRandomSamples ( int sampleCount ) { if ( sampleCount < 0 ) { throw new IllegalArgumentException ( "Sample count cannot be a negative value." ) ; } if ( sampleCount == 0 || size ( ) == 0 ) { return Collections . EMPTY_LIST ; } return new LazySamplingEntryIterableIterator < E > ( sampleCount ) ; }
Gets and returns samples as <code>sampleCount</code>.

@param sampleCount Count of samples
@return the sampled {@link SamplingEntry} list