• bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    6
    ·
    6 hours ago

    You can, but you shouldn’t. You don’t know what else relies on Math.random. That’s why there’s the wrapper function. That you can override in unit tests without worrying about other, unrelated code.