karelpeeters

    karelpeeters

    4 years ago
    Out of interest, why was it deprecated?
    ilya.gorbunov

    ilya.gorbunov

    4 years ago
    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
    v

    vmichalak

    4 years ago
    @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 ... 😕