Enhaced random lineup function