Question: how to insert a discret distribution in maple

I kind of work on generat asample from  Adiscret uniform distribution with pdf (P(x)=1/k+1  x=0..k). 
but i couldn't insert the PDF to generate asample is there any way to insert this pdf in maple then generata asample

Please Wait...