got rid of global bin_import, creating random variables more quickly