I need a way to use batch to look at every line of a text file, and delete half of the lines in that text file, choosing which lines to delete at random.
This is to simu
One way to do this would be to create simple files for each character. Then use a random script to do something like this:
set/a number=%random% * (number of people there are) / 32768 + 1
set status=dead
call person%number%.bat (Each file should contain a set status=live script)
if %status% == live (
set/a peopletokill=%peopletokill%-1
del person%number%.bat
)
if %peopletokill% == 0 (
exit
)
Something like that could work.