<commit_before>package com.hazelcast.util;

import java.util.Random;

/**
 * User: ahmetmircik
 * Date: 10/7/13
 * Time: 12:27 PM
 *
 */
public final class RandomPicker {

    private static Random randomNumberGenerator;

    private static synchronized void initRNG() {
        if (randomNumberGenerator == null)
            randomNumberGenerator = new Random();
    }

    public static int getInt(int n) {
        if (randomNumberGenerator == null) initRNG();
        return randomNumberGenerator.nextInt(n);
    }

}<commit_msg>some code cleanup & optimizations<commit_after>package com.hazelcast.util;

import java.util.Random;

/**
 * User: ahmetmircik
 * Date: 10/7/13
 * Time: 12:27 PM
 *
 */
public final class RandomPicker {

    private RandomPicker() {}

    private static Random randomNumberGenerator;

    private static synchronized void initRNG() {
        if (randomNumberGenerator == null)
            randomNumberGenerator = new Random();
    }

    public static int getInt(int n) {
        if (randomNumberGenerator == null) initRNG();
        return randomNumberGenerator.nextInt(n);
    }

}
{'fraction_non_alphanumeric': 0.10134529147982063, 'fraction_numerical': 0.016143497757847534, 'mean_word_length': 3.058181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3832848', 'n_tokens_mistral': 338, 'n_tokens_neox': 317, 'n_words': 87}