First, avoid over-mixing the pudding. If your pudding is runny, put it in the fridge (overnight if you have time). You can also use a thickening agent, like cornstarch.