added one to random in case of zero