Bralvis1 January 24, 2016 at 09:19:50 Specs: Windows 7
how do I make a number generator using batch to go from 1-100? I'm not sure how to do it and I need one for my batch file game I'm making I also need to know how to make it to where I can make the number generator something else EX: 1-5 EX:25-1000
::------- demo only - begin demo script @echo off & setlocal set range=%1 echo demo of random range, usage: %0 range echo where range is upper-bound of random number, must be less than 32767 if not defined range goto :eof :1 set /a x=%random% "%%" %range% set /a x+=1 echo x:%x% set r= set /p r=new range or repeat: if not defined r goto :1 set /a r+=0 if %r% lss 2 goto :eof set range=%r% goto :1
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.