User Portlet User Portlet

Discussions
PS. In case anyone misunderstands me, I don't mean that Mathematica would learn to parse other programming languages; I just mean that I could implement the same algorithm in Mathematica that I have in some other language, in order to gain novel...
Thanks, Henrik, yes it took me a while before I realized that Mathematica uses `=` for assignment. Apologies for the half-baked plea for help, I did figure it out by myself in the end. `n` is the size of the discrete random variable minus one, and...