1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 00:09:59 +01:00

Merge pull request #123 from Seldaek/patch-3

Add alternative randomNumber usage
This commit is contained in:
Francois Zaninotto 2013-03-04 06:55:49 -08:00
commit 843e60b04f

View File

@ -160,6 +160,7 @@ Each of the generator properties (like `name`, `address`, and `lorem`) are calle
randomDigit // 7
randomDigitNotNull // 5
randomNumber($nbDigits = NULL) // 79907610
randomNumber($from, $to) // 39049
randomFloat($nbMaxDecimals = NULL, $min = 0, $max = NULL) // 48.8932
randomLetter // 'b'
randomElement($array = array ('a','b','c')) // 'b'