jkbbwr
06/20/2016, 3:30 PMinfix 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