Miscarriages

I hear it's pretty common for miscarriages... I just had one a month ago and don't know how long we should wait to try again.. It was pretty devastating for my husband and I and I'm scared of it happening again