Search found 1 match
- 20 Nov 2010 12:29
- Forum: DOS Batch Forum
- Topic: Doing a random true/false =FIXED=
- Replies: 2
- Views: 3476
Doing a random true/false =FIXED=
if %something% ==1 (echo true) else (echo false) I'm working on a batch file to randomize a config file, but I've run into a hitch for the true/false options. I've got a system working to randomly pick a 1 or a 2, but how would I go about doing this: If number is 1, set a variable=true Else set a va...