Is there a way on Faker to generate a random decimal between 0-1? https://github.com/faker-ruby/faker/issues/1834
Faker::Number.decimal(l_digits= 2, r_digits= 2).within(range: 0..1)
The above does not work. Error:
undefined method `within' for "12.4" String
12.4 being the random number that's generated
If I can't use faker, is there a way in Ruby to generate this? I just need to generate a number with 2 decimal places between 0 and 1