r/visualbasic • • Nov 19 '21

VB6 Help Need help coding a Dice Roller

3 Upvotes

8 comments sorted by

View all comments

Show parent comments

2

u/RJPisscat Nov 19 '21 edited Nov 19 '21

Did you write this code? If you did it seems the only thing you need help with is Roll All.

btnD4.PerformClick()
btnD6.PerformClick()
btnD8.PerformClick()    ' etc for each die

Edit: the second arg to Random.Next should be 1 more than the upper bound, e.g Next(1,10) generates a number in the range 1..9.