1. Get a D/P Random encounter Pokemon Generator to generate a Miltank.
2. Open your Pokemon Diamond save file with a save file editor.
3. Input the Miltank's statistics by going to Pokemon, select the box and position you want to put the Miltank in and edit its statistics according to the one generated.
4. Press save.
5. Boot up Pokemon Diamond and load your save file.