fzaninotto/Faker

How can I generate random numbers between 2 values?

faiyaz032 opened this issue · 1 comments

I want to pass a function like function($from (1), $to(5)){
    and it returns me random numbers with 1 to 5.. like 1,2 ,4,3,5
}

I think numberBetween() is what you're looking for. See: https://github.com/fzaninotto/Faker#fakerproviderbase