diff --git a/app/src/main/java/com/wyattjmiller/dicerollerapp/Randomizer.kt b/app/src/main/java/com/wyattjmiller/dicerollerapp/Randomizer.kt index 57468fe..cc8b23d 100644 --- a/app/src/main/java/com/wyattjmiller/dicerollerapp/Randomizer.kt +++ b/app/src/main/java/com/wyattjmiller/dicerollerapp/Randomizer.kt @@ -3,16 +3,11 @@ package com.wyattjmiller.dicerollerapp import kotlin.random.Random class Randomizer { - private var mCoin: Array = Coin.values() - private var mDie: Array = Die.values() - - fun randomCoinFlip(): Int { - val rand = Random.nextInt(mCoin.size) - return rand + fun randomCoinFlip(item: Array): Int { + return Random.nextInt(item.size) } - fun randomDieRoll(): Int { - val rand = Random.nextInt(mDie.size) - return rand + fun randomDieRoll(item: Array): Int { + return Random.nextInt(item.size) } } \ No newline at end of file