Ok first of all I KNOW THAT a bunch of random() functions will result in a small number. that is why i didn't put for the last random "100" or something like that. I put "100000000000000000000". And I KNOW that the value of "random_a" won't change if I change the value of "random_b" later on. What I am foucusing on is how random these scripts are and how i can make them more random. so i don't really care about the little things unless they result in errors(cuz nobody likes errors ) I just want to know how random these scripts are. period.
The first one would work because I declaired the variables before calling the script.
The second one's problem is also fixed because the number for the random function is somthing like 1000000000000000000000000.
here is a script that will do the job(i know u don't use gml but let's use it anyways )
if keyboard_check(vk_left) && place_free(x-5,y) x-=5;
if keyboard_check(vk_right) && place_free(x+5,y) x+=5;
if keyboard_check(vk_up) && place_free(x,y-5) y-=5;
if keyboard_check(vk_down) && place_free(x,y+5) y+=5;