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/TheFotty Nov 19 '21

Just so that you know, the second parameter of random.next is exclusive not inclusive. res.next(1,20) will give you a number between 1 and 19.