code: def test_uniform_generator(polygons):
      sample = uniform(polygons[0], size=10, rng=1)
      sample2 = uniform(polygons[0], size=10, rng=1)
      assert sample.equals(sample2)
  
      generator = numpy.random.default_rng(seed=1)
      gen_sample = uniform(polygons[0], size=10, rng=generator)
      gen_sample2 = uniform(polygons[0], size=10, rng=generator)
  
      assert sample.equals(gen_sample)
      assert not sample.equals(gen_sample2)
  
file_path: geopandas/geopandas/tools/tests/test_random.py
imports: import pytest
  import numpy
  import geopandas
  from geopandas.tools._random import uniform
label_desc: Use image node_id 8 for calling a global function with example usage: test_uniform_generator(polygons) without return types