execute store result storage lib:randarray cache int 1 run scoreboard players get @s mem data modify storage lib:randarray out append from storage lib:randarray cache kill @s