[Solved]Help: How to generating random values for position.

Hi,
I want to make a mini game where the scene displays an image (with Hotspot) for a limited time, the player has to clic it in order get point and proceed in the story.

So far I have that covered, however I´d like the object to appear in a random position everytime.
Any idea how can I achieve this?
How can I modify the values from Direct position or other position values, so it returns a random number, and therefoe a random position for the object.

Thank you so much in advance, any help is appreciated.
Can it appear anywhere on the screen or does it need to take obstacles into account?
Can it appear anywhere on the screen or does it need to take obstacles into account?
Anywhere in the screen.
How are you currently displaying it?
Using a wait and jump to label command, then erasing the hotspot and making a new one appear.
I based this from a steam code from user Nikki, where the objects appeared in fixed position, but I want to make it more dynamic and make them appear in random positions.
Ah sorry, I never noticed this was for Visual Novel Maker. I don't think I'm gonna be much help on that one.
Any idea how to solve it in rpg, then?
Maybe I can apply the same logic, to adapt the process for VNM.
In MV, I'd just set the X and Y coordinate of the hotspot sprite to a random integer between 0 + width/height and screen width/height - width/height (to make sure it doesn't go off the screen).
I got it! Thanks for your answer, @Trihan I started to searched for the random value for position x and y, and found out a similar post : Is randomizing scenes/events possible?

I mixed them both and got a working randomized position for Hotspot.

Here is how it looks.
Hope this comes handy to others!

Spoiler
1.PNG

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-help-how-to-generating-random-values-for-position.123393/