Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

How can I generate random numbers between 2 values? #2019

Open
faiyaz032 opened this issue Jun 25, 2020 · 1 comment
Open

How can I generate random numbers between 2 values? #2019

faiyaz032 opened this issue Jun 25, 2020 · 1 comment

Comments

@faiyaz032
Copy link

faiyaz032 commented Jun 25, 2020

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
}
@faiyaz032 faiyaz032 changed the title How can I gemerate random numbers between 2 values? How can I generate random numbers between 2 values? Jun 25, 2020
@villfa
Copy link

villfa commented Jul 1, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants