Faker Elixir (octopus) v1.0.2 FakerElixir.Number
Generate fake data for the domain Number
Summary
Functions
Return a number between the range given
Return a number between the min and max given
Return a random decimal number
Return a random decimal number with x
left digits
Return a random decimal number with x
left digits and x
right digits
Return a digit
Return random digits
Return x
digits
Functions
Return a number between the range given
Examples
iex> FakerElixir.Number.between(15..150)
130
Return a number between the min and max given
Examples
iex> FakerElixir.Number.between(15, 150)
18
iex> FakerElixir.Number.between(11.22, 13.88)
11.24
iex> FakerElixir.Number.between(12, 12.35)
12.11
Return a random decimal number with x
left digits
Examples
iex> FakerElixir.Number.decimal(3)
"918.43"
Return a random decimal number with x
left digits and x
right digits
Examples
iex> FakerElixir.Number.decimal(1, 3)
"2.298"