#!/bin/bash
unset IFS; ret=0 && x=1 && while read f; do if [ $[RANDOM % x++] = 0 ]; then ret=$f; fi; done && echo $ret
