How can you generate a random number from a specific range, for example the integer 34 in the range [1, 100]?
I looked at the Random structure but it doesn't give me what I want, at least from what I can understand.
How can you generate a random number from a specific range, for example the integer 34 in the range [1, 100]?
I looked at the Random structure but it doesn't give me what I want, at least from what I can understand.
randRangewithin the structureRandom, it should be a perfect fit for what you need - waldrumpusRandom.randRange((i, j) s), (or I'm completley wrong) but what iss? - froliRand.rand : (int * int) -> randto instantiate a random number generator. Also, be careful to leave out the enclosing parentheses when calling a curried function:Random.randRange (i, j) s- waldrumpus