using Random

hello, i wanna know if random can be used for like choose only from numbers for example 3,6,10,15,25.
thanks

Yes,put the numbers in an array, and use an appropriate random index.