#/random with multiple ranges?
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
Someone will come and help soon!
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1723405096:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
You could use macros, but even then you'd need a command for each range you want all at once
you can take a random element of the array
[35mdata [34mmodify storage [0mmain random_array [34mset value [33m[[32m1[34m,[32m2[34m,[32m3[34m,[32m7[34m,[32m8[34m,[32m9[33m]
[35mexecute [34mstore result storage [0mmain macros.i [34mint [32m1 [34mrun [35mrandom [34mvalue [32m0[35m..[32m5
[35mfunction [0mget_number [34mwith storage [0mmain macros
function get_number
[37m$[35mexecute [34mstore result score [36m#random [0mmain_score [34mrun [35mdata [34mget storage [0mmain random_array[33m[[34m$[35m([0mi[35m)[33m]
Thank you !