added random function

picks value from an array