Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Reroll duplicates?

" Eye Rays. The mindwitness shoots three of the following magical eye rays at random (reroll duplicates)". How do I roll 3d6 rerolling any duplicates (rerolling until I have 3 unique numbers)?
1606930226
The Aaron
Roll20 Production Team
API Scripter
You have to do it manually without the API, a pro subscriber perk. You could generate the total possible combinations of the possible values and then build a rollable table to randomly choose between them to get it in one go.  That could be quite the undertaking if there are more than a few options.  N!/(N-3)! rows.
1606935190
David M.
Pro
API Scripter
I believe there are only 20 unique combinations of three different eye rays (out of only six different rays), so a rollable table would be pretty easy to set up. Replace the 1's, 2's, and 3's below with the name of the rays if you like. 123 124 125 126 134 135 136 145 146 156 234 235 236 245 246 256 345 346 356 456
1606935569
The Aaron
Roll20 Production Team
API Scripter
Ah right! Order doesn't matter. =D  That should be pretty straight forward.
1606935844
David M.
Pro
API Scripter
Yeah, cuts down the list quite a bit!
1606989028
Oosh
Sheet Author
API Scripter
You can avoid duplicates between two of the three comparisons with this: [[1d6r[[1d6]]r[[1d6]]]] $[[0]] $[[1]] But there's no way I can think of to link the final two dice.