jeudi 9 février 2017

Even distribution of random numbers in Windows batch

I want a random number in Windows batch. Here's my command:

set /a "random_line=(%random%%%total)+1"

Is this going to give me an even distribution of random numbers?




Aucun commentaire:

Enregistrer un commentaire