This code won't work. This is supposed to generate a name with random traits and backstories about them. I don't know why it won't work.
@echo off
:top
echo ----------------------------------------
echo random name genorator
echo ----------------------------------------
echo 1 genorate name
echo 2 add more info
echo 3 what is this
set /p rand=
if %rand% == 1 goto first
if %rand% == 2 goto 2
if %rand% == 3 goto 3
:first
if %random% == 0 set fname=tony
if %random% == 1 set fname=pamb
if %random% == 2 set fname=ape
if %random% == 3 set fname=bob
if %random% == 4 set fname=jonathan
if %random% == 5 set fname=dave
if %random% == 6 set fname=avery
if %random% == 7 set fname=felica
if %random% == 8 set fname=herman
if %random% == 9 set fname=elana
cls
echo your new name is %fname%
pause
:2
exit
:3
exit
When I press 1 it says "your new name is ".