{"id":988,"date":"2009-11-24T21:30:01","date_gmt":"2009-11-24T20:30:01","guid":{"rendered":"http:\/\/blogs.wittwer.fr\/whiler\/?p=988"},"modified":"2012-03-02T04:11:49","modified_gmt":"2012-03-02T03:11:49","slug":"exemple-random-number-generator","status":"publish","type":"post","link":"https:\/\/blogs.wittwer.fr\/whiler\/2009\/11\/24\/exemple-random-number-generator\/","title":{"rendered":"Un exemple simple d\u2019utilisation du Random Number Generator"},"content":{"rendered":"<p>Un exemple tr\u00e8s simple qui illustre parfaitement la notion d&rsquo;al\u00e9atoire.<br \/>\n<center><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<th colspan=\"3\">Soient 2 d\u00e9s \u00e0 6 faces&nbsp;:<\/th>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-989\" title=\"dice1.png\" src=\"\/whiler\/wp-content\/uploads\/2009\/11\/dice1.png\" alt=\"dice1.png\" width=\"32\" height=\"32\" \/><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-991\" title=\"dice3.png\" src=\"\/whiler\/wp-content\/uploads\/2009\/11\/dice3.png\" alt=\"dice3.png\" width=\"32\" height=\"32\" \/><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-993\" title=\"dice5.png\" src=\"\/whiler\/wp-content\/uploads\/2009\/11\/dice5.png\" alt=\"dice5.png\" width=\"32\" height=\"32\" \/><\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-990\" title=\"dice2.png\" src=\"\/whiler\/wp-content\/uploads\/2009\/11\/dice2.png\" alt=\"dice2.png\" width=\"32\" height=\"32\" \/><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-992\" title=\"dice4.png\" src=\"\/whiler\/wp-content\/uploads\/2009\/11\/dice4.png\" alt=\"dice4.png\" width=\"32\" height=\"32\" \/><\/td>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-994\" title=\"dice6.png\" src=\"\/whiler\/wp-content\/uploads\/2009\/11\/dice6.png\" alt=\"dice6.png\" width=\"32\" height=\"32\" \/><\/td>\n<\/tr>\n<tr>\n<th colspan=\"3\">combien avez-vous obtenu&nbsp;?<\/th>\n<\/tr>\n<tr>\n<th colspan=\"3\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-994\" title=\"Une face\" src=\"\/whiler\/wp-content\/uploads\/2009\/11\/dice3.png\" alt=\"Une face\" width=\"32\" height=\"32\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-994\" title=\"Une face\" src=\"\/whiler\/wp-content\/uploads\/2009\/11\/dice6.png\" alt=\"Une face\" width=\"32\" height=\"32\" \/><\/th>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/center><\/p>\n<p>Pour r\u00e9aliser cette page, j&rsquo;ai install\u00e9 l&rsquo;<a target=\"_blank\" href=\"https:\/\/wordpress.org\/extend\/plugins\/random-number-generator\/\">extension Random Number Generator<\/a> et j&rsquo;ai utilis\u00e9 les tags suivants&nbsp;:<br \/>\n<center><code class=\"codecolorer text dawn\"><span class=\"text\">[random-number from='1' to='6']dice%d.png[\/random-number]<\/span><\/code><br \/>\n<code class=\"codecolorer text dawn\"><span class=\"text\">dice[random-number from='1' to='6' format='%d'].png<\/span><\/code><\/center><\/p>\n<div class=\"thanks_button_div\" \n                  style=\"float: right; margin-right: 10px; margin-top:10px;\"><div id=\"thanksButtonDiv_988_1\" style=\"background-image:url(https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/plugins\/thanks-you-counter-button\/images\/thanks_compact_brown1.png); background-repeat:no-repeat; float: left; display: inline;\"\n                onmouseover=\"javascript:thankYouChangeButtonImage('thanksButtonDiv_988_1', true);\" \n                onmouseout=\"javascript:thankYouChangeButtonImage('thanksButtonDiv_988_1', false);\"\n                onclick=\"javascript:thankYouChangeButtonImage('thanksButtonDiv_988_1', false);\" >\n                <input type=\"button\" onclick=\"thankYouButtonClick(988, 'You left &ldquo;Thanks&rdquo; already for this post')\" value=\"Merci\u00a0 3\"\n                  class=\"thanks_button thanks_compact thanks_brown1\"\n                  style=\"  font-family: Verdana, Arial, Sans-Serif; font-size: 14px; font-weight: normal;; color:#00f;\"\n                  id=\"thanksButton_988_1\" title=\"Click to leave &ldquo;Thanks&rdquo; for this post\"\/>\n             <\/div><div id=\"ajax_loader_988_1\" style=\"display:inline;visibility: hidden;\"><img decoding=\"async\" alt=\"ajax loader\" src=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/plugins\/thanks-you-counter-button\/images\/ajax-loader.gif\" \/><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Un exemple tr\u00e8s simple qui illustre parfaitement la notion d&rsquo;al\u00e9atoire. Soient 2 d\u00e9s \u00e0 6 faces&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9,11],"tags":[99,106,100,111,26,128,108,107],"class_list":["post-988","post","type-post","status-publish","format-standard","hentry","category-php","category-web","tag-addons","tag-blog","tag-extensions","tag-html","tag-plugin","tag-rng","tag-script","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts\/988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/comments?post=988"}],"version-history":[{"count":0,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts\/988\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/media?parent=988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/categories?post=988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/tags?post=988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}