Base

All parameters are optional. The sample parameters are the default values used by each function.

Faker.random_digit()
=> 5


Faker.random_digit_not_null()
=> 9


Faker.random_digit_or_empty()
=> 8


Faker.random_digit_not_null_or_empty()
=> 3


Faker.random_number(digits= 1)
=> 5


Faker.random_int(min=0, max=9999)
=> 3753


Faker.randomize_nb_elements(number=10, le=false, ge=false)
=> 11.4


Faker.randomize_nb_elements(number=10, le=true, ge=false)
=> 10.5


Faker.randomize_nb_elements(number=10, le=false, ge=true)
=> 14.3


Faker.randomize_nb_elements(number=10, le=true, ge=true)
=> 10


Faker.random_letter()
=> w


Faker.random_element(("a", "b", "b"))
=> a


Faker.lexify("????")
=> XprH


Faker.numerify("####")
=> 2343


Faker.bothify("## ??")
=> 39 zl


Faker.random_lowercase_letter()
=> j


Faker.random_uppercase_letter()
=> V


Faker.random_special_caracteres()
=> &


Faker.unicode()
=>

Last updated