#!/bin/sh

testArr[1]="echo 1"

choose=`expr $RANDOM % 5`
choose=`expr ${choose} + 1`

#then do the test by the random choose
${testArr[${choose}]};
~                                                                                                                                  
~                              

posted on 2009-07-27 16:48  men-chong  阅读(161)  评论(0编辑  收藏  举报