Ah sorry I missed in was in Array. To be honest I wasn’t clear on the boundary but I suppose Int.range() takes ints and returns an array. (so a module can convert from it’s type to another type?)
The last one I can’t find is where Js.Math.random__int() is now?
Int.range returns an array<int>, Float.range returns an array<float>. I wouldn’t say it converts anything.
There isn’t one. That function doesn’t exist in JavaScript. So you have to do something similar to what you’d do in JavaScript, see Math.random() - JavaScript | MDN
let randomInt = (min, max) =>
Float.toInt(Math.random() *. float(max - min)) + min