blob: cf109125d9c9b00c3cb35059fa078ac96abe9818 (
plain) (
blame)
1
2
3
4
5
6
7
|
#set lim before using
scoreboard players operation #a srand *= #a m
scoreboard players operation #a srand += #a c
scoreboard players operation #a srand %= #a p
scoreboard players operation #a randr = #a srand
scoreboard players operation #a randr %= #a lim
#result in randr
|