14,974
edits
(Created page with "Sleep random seconds in programming == MS-DOS == [https://stackoverflow.com/questions/8258087/bat-random-timeout batch file - .bat random timeout - Stack Overflow] * {{kbd |...") |
m (→MS-DOS) |
||
| Line 6: | Line 6: | ||
* 60 is the range of values you want: 0 to 60. | * 60 is the range of values you want: 0 to 60. | ||
* 32768 is the range of values returned by {{kbd | key=<nowiki>%RANDOM%</nowiki>}} (0 to 32767). | * 32768 is the range of values returned by {{kbd | key=<nowiki>%RANDOM%</nowiki>}} (0 to 32767). | ||
* 5 is the minimum value you want. The original range of values you want 0 to 60 became 5 ~ 65. | * 5 is the minimum value you want. The original range of values you want '0 to 60' became '5 ~ 65'. | ||
* ping local address<ref>[https://stackoverflow.com/questions/735285/how-to-wait-in-a-batch-script windows xp - How to wait in a batch script? - Stack Overflow]</ref> | * ping local address<ref>[https://stackoverflow.com/questions/735285/how-to-wait-in-a-batch-script windows xp - How to wait in a batch script? - Stack Overflow]</ref> | ||
<pre> | <pre> | ||