Solved I want to make a random number generator for a set.

November 23, 2013 at 08:06:12
Specs: Windows 8
I am making a script game where the enemy chooses its own attack I only have 3 attacks so I need a number from 1 to 3 to be picked. How would I do this?

See More: I want to make a random number generator for a set.

Report •

#1
November 23, 2013 at 16:58:58
✔ Best Answer
@echo off & setLocal enableDELAYedeXpansioN

set/a G=!RANDOM!%%3+1
echo !G!

=====================
M2 Golden-Triangle


Report •
Related Solutions


Ask Question