converting randomselector