feat: add remake command

This commit is contained in:
2024-09-05 13:40:41 +08:00
parent f52204975a
commit 790c48387e
4 files changed
+84 -1

No files matched your search

@@ -0,0 +1,15 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/5
*/
package cn.rtast.fancybot.util
import kotlin.random.Random
fun randomBooleanWithProbability(probability: Double): Boolean {
val randomValue = Random.nextInt(100)
return randomValue <= (probability * 100)
}