This commit is contained in:
2024-12-02 19:11:12 +01:00
parent 13113e4c18
commit 6eea92033d
6 changed files with 49 additions and 18 deletions
@@ -8,6 +8,7 @@ import net.minecraft.world.World
import org.joml.Vector2f
import org.joml.Vector3f
import org.joml.Vector4f
import java.util.SplittableRandom
import kotlin.math.*
import kotlin.random.Random
@@ -79,7 +80,7 @@ fun randomFloatBetween(min: Float, max: Float) : Float {
fun randomIntBetween(min: Int, max: Int) : Int {
return Random.nextInt(min, max)
return Random.nextInt(max - min) + min
}