Out of interest, why was it deprecated?
# multiplatform
k
Out of interest, why was it deprecated?
i
We've deprecated most of its functions, and also are going to deprecate
random
as soon as there is a replacement.
Regarding the reason why — we'd like to reduce the confusion of having both
kotlin.math
with the top-level functions and
kotlin.js.Math
object with the same functions. Especially because there are subtle differences and inconsistencies in the latter ones: https://youtrack.jetbrains.com/issue/KT-17716
👍 2
v
@ilya.gorbunov Which kind of replacement do you prepare for Random ? I personally wrote a Linear Congruential Generator in pure kotlin because the language doesn't provide multiplateform random ... 😕