{"id":3869,"date":"2021-11-04T23:22:28","date_gmt":"2021-11-04T23:22:28","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=3869"},"modified":"2021-11-04T23:23:04","modified_gmt":"2021-11-04T23:23:04","slug":"missing-operand-batch-problem","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/missing-operand-batch-problem\/23211.html","title":{"rendered":"Missing Operand&#8230; Batch Problem"},"content":{"rendered":"<p>I&#8217;m new here, and I&#8217;ve been working on a Batch Script that generates a number between a maximum and minimum number. Here is the script (or most of it):<\/p>\n<p>echo Choose the Minimum Number (Must be over -1):<br \/>\nset \/p min =<br \/>\npause&gt;nul<br \/>\necho Choose the Maximum Number (Must be under 32768):<br \/>\nset \/p max =<br \/>\npause&gt;nul<br \/>\nset \/a range= %max% &#8211; %min%<br \/>\nset minrand = 0<br \/>\nset maxrand = 32767<br \/>\nset \/a number = (%random%-%minrand%) * %range% \\ %maxrand% + %min%<br \/>\necho %number%<\/p>\n<p>When I run it I get this error message:<br \/>\nMissing Operand.<br \/>\nECHO is off.<\/p>\n<p>What&#8217;s wrong?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":4},"question-category":[55],"question_tags":[],"class_list":["post-3869","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\/3869","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=3869"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=3869"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=3869"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=3869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}