I have this line:
[HP] = Int(([HD] * Rnd) + 1)
It creates a random number between 1 and the number in text box [HD] and puts that number in text box [HP].
I created another box, [LvlChar], and would like it to add as many instances of code together as is the number in [LvlChar].
IE, if the number in [LvlChar] 4, it would generate 4 random numbers between 1 and the number in [HD] and add them all together, then put that number in [HP]. If there was a way to display which four numbers were generated and added, that would be even better.
But I don't know how to do this.
Thanks!
[HP] = Int(([HD] * Rnd) + 1)
It creates a random number between 1 and the number in text box [HD] and puts that number in text box [HP].
I created another box, [LvlChar], and would like it to add as many instances of code together as is the number in [LvlChar].
IE, if the number in [LvlChar] 4, it would generate 4 random numbers between 1 and the number in [HD] and add them all together, then put that number in [HP]. If there was a way to display which four numbers were generated and added, that would be even better.
But I don't know how to do this.
Thanks!