0

I need to get a random float number between 0 and 1 (probability) to feed into my batch script.

It seems %RANDOM% only returns integers? I tried dividing by max number (around 32000) and I just get back an int.

1

Batch files do not support floating point arithmetic. There are some possible workarounds discussed in a few answers to these questions on StackOverflow:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.