Added VSRandom function