# Game maker studio 2 Random spawn locations are not random [duplicate]

This is a redo of another question I asked. First I want to clarify that I am indeed using drag and drop. So saying something like "maybe switching to gml will fix your problem" is appreciated, but wont help. Anyway, this is what my block looks like:

## [Create Instance]

Object: object11 X: random(room_width) Y: random(room_height) Layer: "Instances_2"

I have used this to randomly generate things in my games before, but I am now realizing it isn't very random. Every time it generates, it is in a random place, but it is that same random place every time I play. Does anybody know how to fix this? (sorry this was so long)

EDIT: this is NOT an exact duplicate. This is FAR different from my original. Please take that down. /

• If you need to clarify something in your original question, please edit it rather than opening a new question. – Pikalek Jan 8 '18 at 4:35
• Multiple users voted to consider this a duplicate. If you feel that assessment is incorrect, try including some reasoning to persuade someone who thought it was a duplicate to change their mind. Simply saying "it's not" is unlikely to have the desired effect. – DMGregory Jan 9 '18 at 2:12

(addition): Just from googling it seems that i am indeed correct and you should call randomize() at the start of your game.Click here to see the DOC.