Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 497 Bytes

number.md

File metadata and controls

25 lines (14 loc) · 497 Bytes

Faker.Number

Faker.Number.Number(10) //=> "1968353479"

Faker.Number.LeadingZeroNumber(10) //=> "0669336915"

Faker.Number.Decimal(2) //=> "11.88"

Faker.Number.Decimal(2, 3) //=> "18.843"

Faker.Number.Normal(50, 3.5) //=> 47.14669604069156

Faker.Number.Hexadecimal(3) //=> "e74"

Faker.Number.Between(1, 10) //=> 7

Faker.Number.Positive() //=> 235.59238499107653

Faker.Number.Negative() //=> -4480.042585669558

Faker.Number.NonZeroDigit() //=> "8"

Faker.Number.Digit() //=> "1"