Started by
Mr_Alpha
on
Topic category: Advanced modding
Hi everyone,
I'm trying to create a mod where if you type in a command it tells you to pick a number one through ten. I want it to then randomize a whole number 1-10, but there's not button to set a variable to random # - #. Does anyone know how to do this?
Thanks.
Something like Math.round(Math.random()*10)
@#1 Would I have to put that in custom code? Like, go to the set variable menu and then where it asks what to set it to, type Math.round(Math.random()*10)? And I thought Math.random was used as Math.random(x) to pick a number from 1 to x?
Same question. PLZ HELP!
I'm making random mob drops and i need help D:
3 months ago I was hoping someone would answer. Now I'm just bored.