added randfeatures.m