Random number macro

Is it possible to create a macro which uses random numbers, like 20 times. I have tried arouna bit with the command execute store result score @s size run random value 1..16. And it seems as tho this command applies the correct score to the entities however i cant seem to figure out how to run a proper function with that score as a base for the macro
Continue to help post