Well I don't know what kind of system you use.. but here is an example of something quick.
Code:
rand=irandom_range(1,6)
if place_free(x+32*rand,y) {
x+=32*rand
}
Now that will move the player to the right along a 32 pixel grid 1-6 times depending on what the dice chooses.
Now you just need to change that to fit your game! (Collisions/Movement system)