A small Matlab-script to calculate the lotteries for Markov-chain-based social choice functions and social decision schemes, and to check SD-strategyproofness;