{"id":14976,"date":"2021-12-17T14:13:46","date_gmt":"2021-12-17T14:13:46","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=14976"},"modified":"2021-12-17T14:14:29","modified_gmt":"2021-12-17T14:14:29","slug":"chance-in-batch-game","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/chance-in-batch-game\/24135.html","title":{"rendered":"Chance In Batch Game?"},"content":{"rendered":"<p>How do you make a 50% chance that you can use in a batch game?<br \/>\nI am new to batch files, so please explain everything clearly.<br \/>\nIf am doing something wrong, please tell me.<br \/>\nPlease do not post replies like: &#8220;Do this, stupid.&#8221; because I am new to batch files.<\/p>\n<p>@echo off<br \/>\n:command<br \/>\necho ===============<br \/>\necho 1.Rock<br \/>\necho 2.Paper<br \/>\necho 3.Scissors<br \/>\necho ===============<\/p>\n<p>I give the user the chance to choose between: &#8220;Rock&#8221;, &#8220;Paper&#8221;, or &#8220;Scissors&#8221;.<br \/>\nHow do I make the batch file choose between the 3 randomly.<br \/>\nAnd after I add the chance, how do I set the win or lose?<br \/>\n,Thanks in advance<br \/>\neXe<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":7},"question-category":[55],"question_tags":[],"class_list":["post-14976","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/14976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=14976"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=14976"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=14976"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=14976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}