I'm trying to create a number that's inside of a range with scalacheck generators like:
Gen.chooseNum(min, max)
But it defaults to the increment value of 1 but I wanted it to increment with 0.5.
What is the solution for this?
I'm trying to create a number that's inside of a range with scalacheck generators like:
Gen.chooseNum(min, max)
But it defaults to the increment value of 1 but I wanted it to increment with 0.5.
What is the solution for this?
Copyright © 2021 Jogjafile Inc.
You can generate integers that are multiples of 5 and then divide them by 10.