Is there any good package for discret sampling and supports a customized distribution?
You mean where you can give just a log-density function to the sampler?
Probably the best & coolest:
and probably others.
i mean a package where i can use my own customized distribution also a density function for metropolis hasting sampling
Not sure what you mean. Maybe this thread can help you: MCMC landscape ?