Added random functionality to location variables

Random works similarly to the random entity variable