You need to make your question clearer:
- What exactly are you trying to do?
- What version of GMS are you using?
- What have you tried? What were the results? How did those results differ from your desired behavior?
- Have you checked the manual for any relevant info (i.e. spawning objects, doing things that are random, etc.)?