testing randomness with JSON in file