Fork me on GitHub
#schema
<
2019-06-20
>
dotemacs14:06:36

Say that I have the following schema:

(s/defschema MultiplierDataLine
  {:multiplier s/Num :probability s/Num :volatility s/Num})
And when I
(schema.experimental.generators/sample 10 MultiplierDataLine)
I get some values returning as either -Infinity or Infinity. What is the recommended way of adding the constraints so that the values generated stay within a certain range, say -1000 to 1000? Thanks