Hi guys, i need your help.
I need to do some dice rolls for my project.
i need 2D6 roll and 1D6 roll.
I actually use this code for it:
result = max(1,(min(int(random(7)),6)));// 1D6 roll
Hit_roll = max(2,(min(int(random(13)),12))); //2D6 roll
but my problem with this code is the following:
with this codes i have a much too high chance for the 1 (1D6 roll)
and for the 2 (2D6 roll)
maybe someone has a good sollution for this?
i want to have the same chances for each number
Greetings
Mike