I want to generate a random number with batch processing. There are methods to achieve it.
---------- Edited by willsort ----------
There are the following solutions:
1. Directly reference the environment variable %random% (floor 2),
The number of digits can be controlled by the program (6, 9, floor 13), which can be in the WinNT series environment
2. VBS script generation (floor 4), which can be used under Windows
3. strings + LMOD (floor 5), which can be used under Windows and DOS
4. Pure batch processing (floor 9), which can be used under Windows or DOS
---------- Edited by willsort ----------
[ Last edited by willsort on 2005-8-19 at 16:14 ]
---------- Edited by willsort ----------
There are the following solutions:
1. Directly reference the environment variable %random% (floor 2),
The number of digits can be controlled by the program (6, 9, floor 13), which can be in the WinNT series environment
2. VBS script generation (floor 4), which can be used under Windows
3. strings + LMOD (floor 5), which can be used under Windows and DOS
4. Pure batch processing (floor 9), which can be used under Windows or DOS
---------- Edited by willsort ----------
[ Last edited by willsort on 2005-8-19 at 16:14 ]

