bash script that kills java procceses : So my bash script kills a random java process every 10 seconds.
My goal is to make it every random amount seconds between 5 and 25.
Any idea how I would do that?

Thanks.


@echo off
for /f "tokens=2 delims=," %%T in ('tasklist /nh /fi "imagename eq java.exe" /fo csv') do (
   taskkill /F /pid %%~T 
	timeout /t 10
  goto :start
)
