Added rand test