https://kotlinlang.org logo
k

karelpeeters

12/18/2017, 7:40 PM
Out of interest, why was it deprecated?
i

ilya.gorbunov

12/18/2017, 7:46 PM
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

vmichalak

01/04/2018, 12:08 AM
@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 ... 😕
3 Views