"random" bash function