I think you should use
$rand(1,3)
but, you could make it smaller, and have it read a random like from a text file
$read(txtfile.txt)
Well,. not 'should'. Just a suggestion.