If it's the position you want to randomise you can use set_translation
. Vector3 variables can be used to set the minimum and maximum positions.
export var min : Vector3
export var max : Vector3
m.set_translation(Vector3(rand_range(min.x, max.x), rand_range(min.y, max.y), rand_range(min.z, max.z)))