scoreboard players operation #lcg math *= #lcg constant
scoreboard players add #lcg math 12345


scoreboard players operation #Temp2 KyuDummy = #lcg math


scoreboard players operation #lcg math %= #AAA KyuDummy2



scoreboard players operation #Temp2 KyuDummy -= #lcg math
scoreboard players operation #Temp2 KyuDummy += #m1 math

execute if score #Temp2 KyuDummy matches ..-1 run function zzzzdonotuse:generic/kyunextint




#function math:rng/lcg
#
#
#scoreboard players operation #temp math = out math
#
#
#scoreboard players operation out math %= #range math
#
#
#
#scoreboard players operation #temp math -= out math
#scoreboard players operation #temp math += #m1 math
#execute if score #temp math matches ..-1 run function math:rng/zprivate/next_int