randompass function added