Forward sampling from the block stacking program.