Search found 1 match

by Rob
2021-Dec-17, 11:21 am
Forum: Windows CMD Shell
Topic: CMD Random
Replies: 2
Views: 2591

CMD Random

regarding page https://ss64.com/nt/syntax-random.html and the example shown --- @ECHO OFF SET /a _rand=(%RANDOM%*500/32768)+1 ECHO Random number %_rand% --- I find it not always working. Type the following in CMD and run it multile times: SET /a _rand=(%RANDOM%*6/32768)+2 It will display random digi...