How can I generate random numbers between 2 values?
faiyaz032 opened this issue · 1 comments
faiyaz032 commented
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
}
villfa commented
I think numberBetween()
is what you're looking for. See: https://github.com/fzaninotto/Faker#fakerproviderbase