File:1d choisi parmi 3 differents.png

1d_choisi_parmi_3_differents.png(610 × 461 pixels, file size: 6 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
Français : On jette trois dés pouvant être différents (par exemple 1d4, 1d6 et 1d8), et on retient le meilleur score (système utilisé dans le jeu de rôle Usagi Yojimbo). Le graphique du haut indique la probabilité de faire une valeur. Le graphique du bas indique la probabilité d'atteindre ou de dépasser une valeur.
English: Three dice, possibly different (e.g. 1d4, 1d6 and 1d8), are thrown and only the best result is kept (system used in the Usagi Yojimbo roleplaying game). The top figure shows the probability to get a value. The bottom figure shows the probability to have a result equal or better than a value.
Source Own work
Author Christophe Dang Ngoc Chan (cdang)

Scilab source

clear; clf;

resultat = zeros(12, 12, 12, 12); // initialisation

for imax = 4:2:12
   for jmax = imax:2:12
      for kmax = jmax:2:12
         for i = 1:imax
            for j = 1:jmax
               for k = 1:kmax
                  ijkmax = max(i, j, k);
                  resultat(imax, jmax, kmax, ijkmax) =...
                   resultat(imax, jmax, kmax, ijkmax) +1;
               end
            end
         end
      end
   end
end

// 3d4

somme444 = sum(resultat(4, 4, 4, :));
for i = 1:4
   y444(i) = 100*resultat(4, 4, 4, i)/somme444;
end

z444(4) = y444(4);
for i = 3:-1:1
   z444(i) = z444(i+1) + y444(i);
end

// 2d4+1d6

somme446 = sum(resultat(4, 4, 6, :));
for i = 1:6
   y446(i) = 100*resultat(4, 4, 6, i)/somme446;
end

z446(6) = y446(6);
for i = 5:-1:1
   z446(i) = z446(i + 1) + y446(i);
end

// 1d4+2d6

somme466 = sum(resultat(4, 6, 6, :));
for i = 1:6
   y466(i) = 100*resultat(4, 6, 6, i)/somme466;
end

z466(6) = y466(6);
for i = 5:-1:1
   z466(i) = z466(i + 1) + y466(i);
end

// 1d4+1d6+1d8

somme468 = sum(resultat(4, 6, 8, :));
for i = 1:8
   y468(i) = 100*resultat(4, 6, 8, i)/somme468;
end
 
z468(8) = y468(8);
for i = 7:-1:1
   z468(i) = z468(i + 1) + y468(i);
end

// Tracé

subplot(2,1,1)

plot2d(1:4, y444, rect = [1, 0, 8, 60], style = 1)
plot2d(1:6, y446, rect = [1, 0, 8, 60], style = 2)
plot2d(1:6, y466, rect = [1, 0, 8, 60], style = 3)
plot2d(1:8, y468, rect = [1, 0, 8, 60], style = 4)

xstring(4.1, 55, "3d4")
xstring(6, 12, "2d4+1d6")
xstring(6, 32, "1d4+2d6")
xstring(7, 15, "1d4+1d6+1d8")

xtitle("Probabilité d''obtenir une valeur", "rés.", "%")

subplot(2,1,2)

plot2d(1:4, z444, rect = [1, 0, 8, 100], style = 1)
plot2d(1:6, z446, rect = [1, 0, 8, 100], style = 2)
plot2d(1:6, z466, rect = [1, 0, 8, 100], style = 3)
plot2d(1:8, z468, rect = [1, 0, 8, 100], style = 4)

xstring(3.5, 55, "3d4")
xstring(6, 10, "2d4+1d6")
xstring(5.7, 25, "1d4+2d6")
xstring(7, 30, "1d4+1d6+1d8")

xtitle("Probabilité d''atteindre ou de dépasser une valeur", "rés.", "%")

Licensing edit

GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current11:16, 17 February 2006Thumbnail for version as of 11:16, 17 February 2006610 × 461 (6 KB)Cdang (talk | contribs)On jette trois dés pouvant être différents (par exemple 1d4, 1d6 et 1d8), et on retient le meilleur score (système utilisé dans le jeu de rôle ''Usagi Yojimbo''). Le graphique du haut indique la probabilité de faire une valeur. Le graphique du bas

The following page uses this file:

Metadata