You first need a random number generator:
https://docs.godotengine.org/en/stable/classes/class_randomnumbergenerator.html
Then you can use the function randi() to get an integer (0 to a large number) then use modulus to make it within the range of your position array.
var new_position = position_array[randi() % position_array.size()]