I dont think I can use splice here as I dont know the index of the random element I just picked
Problem solved.my $index = rand @listOfServers;
In reply to Re: Pick random element from array and delete it
by daxim
in thread Pick random element from array and delete it
by vishi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |