sample_alpha function

sample alpha