added random number generator for group passcode