``` infix fun Int.pow(other: Int): Int { retur...
# random
j
Copy code
infix fun Int.pow(other: Int): Int {
    return IntMath.pow(this, other)
}

fun Random.fromRange(start: Int, end: Int): Int {
    return start + this.nextInt((end - start) + 1)
}

fun generateUid(): String {
    return Random().fromRange(10 pow 15, 10 pow 16).toString()
}
Gosh don't extensions make things nicer