<commit_before><?php

namespace Zizaco\FactoryMuff\Kind;

use Zizaco\FactoryMuff\Kind;

class Integer extends Kind
{
    public function generate()
    {
        $length = (int) $this->getOption(0, 5);

        return $this->randomNumber($length);
    }

    private function randomNumber($length)
    {
        $integer = null;
        for ($i = 0; $i < $length; $i++) {
            $integer .= mt_rand(1, 9);
        }

        return (int) $integer;
    }
}
<commit_msg>Use randomNumber() from faker in strict mode<commit_after><?php

namespace Zizaco\FactoryMuff\Kind;

use Zizaco\FactoryMuff\Kind;

class Integer extends Kind
{
    public function generate()
    {
        $length = (int) $this->getOption(0, 5);
        return $this->faker->randomNumber($length, true);
    }
}

{'fraction_non_alphanumeric': 0.1377551020408163, 'fraction_numerical': 0.008928571428571428, 'mean_word_length': 2.6682242990654204, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, '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': '4215089', 'n_tokens_mistral': 261, 'n_tokens_neox': 255, 'n_words': 60}