added uniform sampling over size and beta