Herbert Kleebauer
2023-10-21 16:09:03 UTC
If I execute the following batch:
@echo off
echo %random% %random% %random% %random% %random% %random%
pause
by double clicking in explorer, I get these results:
32421 2119 21482 14360 29755 3072
32464 10777 24341 32271 4 21351
32529 29137 21176 22017 9688 1582
32575 15774 9130 31224 23020 23788
32621 2412 29853 7662 3584 13226
32660 321 14847 1510 29055 27579
The first use of %random% always gives nearly the
same value. Is this a Microsoft feature or a bug?
@echo off
echo %random% %random% %random% %random% %random% %random%
pause
by double clicking in explorer, I get these results:
32421 2119 21482 14360 29755 3072
32464 10777 24341 32271 4 21351
32529 29137 21176 22017 9688 1582
32575 15774 9130 31224 23020 23788
32621 2412 29853 7662 3584 13226
32660 321 14847 1510 29055 27579
The first use of %random% always gives nearly the
same value. Is this a Microsoft feature or a bug?