If your easy chocolate pudding ends up grainy, there may be one of two issues. One is that some of the egg became scrambled when you were making the pudding. You can usually fix this by pushing the pudding through a fine mesh strainer. If that isn't the issue, the pudding probably just needs to be mixed more.