The dimension for random sub-self-similar set