Sample from the distribution of another tensor

Hi, if I have a latent vector z, for example with a dimension of 256x1, is there any way I can sample another vector z' from this latent vector distribution so z' ~ p(z)?