fixing rand import