diff --git a/pumpp/core.py b/pumpp/core.py
index cf39549..ab389c4 100644
--- a/pumpp/core.py
+++ b/pumpp/core.py
@@ -150,7 +150,7 @@ class Pump(object):
 
         return transform(audio_f, jam, *self.ops)
 
-    def sampler(self, n_samples, duration):
+    def sampler(self, n_samples, duration, random_state=None):
         '''Construct a sampler object for this pump's operators.
 
         Parameters
@@ -161,6 +161,16 @@ class Pump(object):
         duration : int > 0
             The duration (in frames) of each sample patch
 
+        random_state : None, int, or np.random.RandomState
+            If int, random_state is the seed used by the random number
+            generator;
+
+            If RandomState instance, random_state is the random number
+            generator;
+
+            If None, the random number generator is the RandomState instance
+            used by np.random.
+
         Returns
         -------
         sampler : pumpp.Sampler
@@ -171,7 +181,9 @@ class Pump(object):
         pumpp.sampler.Sampler
         '''
 
-        return Sampler(n_samples, duration, *self.ops)
+        return Sampler(n_samples, duration,
+                       random_state=random_state,
+                       *self.ops)
 
     @property
     def fields(self):
diff --git a/pumpp/version.py b/pumpp/version.py
index 20f3f16..05cc0e1 100644
--- a/pumpp/version.py
+++ b/pumpp/version.py
@@ -3,4 +3,4 @@
 """Version info"""
 
 short_version = '0.1'
-version = '0.1.3'
+version = '0.1.4pre'

extend pump.sampler interface
Or at least expose all the args and kwargs
diff --git a/tests/test_core.py b/tests/test_core.py
index c74ac7b..4feb22f 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -166,7 +166,8 @@ def test_pump_badkey(sr, hop_length):
 
 @pytest.mark.parametrize('n_samples', [None, 10])
 @pytest.mark.parametrize('duration', [1, 5])
-def test_pump_sampler(sr, hop_length, n_samples, duration):
+@pytest.mark.parametrize('rng', [None, 1])
+def test_pump_sampler(sr, hop_length, n_samples, duration, rng):
     ops = [pumpp.feature.STFT(name='stft', sr=sr,
                               hop_length=hop_length,
                               n_fft=2*hop_length),
@@ -176,8 +177,8 @@ def test_pump_sampler(sr, hop_length, n_samples, duration):
 
     P = pumpp.Pump(*ops)
 
-    S1 = pumpp.Sampler(n_samples, duration, *ops)
-    S2 = P.sampler(n_samples, duration)
+    S1 = pumpp.Sampler(n_samples, duration, random_state=rng, *ops)
+    S2 = P.sampler(n_samples, duration, random_state=rng)
 
     assert S1._time == S2._time
     assert S1.n_samples == S2.n_samples

pip install -e .[docs,tests]
parse_log_pytest
requirements.txt
pytest pytest-cov
apt-get update apt-get install -y ffmpeg
3.5
docs/requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
absl-py==0.15.0
alabaster==0.7.13
appdirs==1.4.4
astunparse==1.6.3
attrs==22.2.0
audioread==3.0.1
Babel==2.11.0
cached-property==1.5.2
cachetools==4.2.4
certifi==2021.5.30
cffi==1.15.1
charset-normalizer==2.0.12
clang==5.0
coverage==6.2
dataclasses==0.8
decorator==5.1.1
docutils==0.18.1
flatbuffers==1.12
gast==0.4.0
google-auth==1.35.0
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
grpcio==1.48.2
h5py==3.1.0
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
jams==0.3.4
Jinja2==3.0.3
joblib==1.1.1
jsonschema==3.2.0
keras==2.6.0
Keras-Preprocessing==1.1.2
librosa==0.9.2
llvmlite==0.36.0
Markdown==3.3.7
MarkupSafe==2.0.1
mir_eval==0.8.2
numba==0.53.1
numpy==1.19.5
numpydoc==1.1.0
oauthlib==3.2.2
opt-einsum==3.3.0
packaging==21.3
pandas==1.1.5
pluggy==1.0.0
pooch==1.6.0
protobuf==3.19.6
-e git+https://github.com/bmcfee/pumpp.git@7486f998acdd0f82241aeb0efdd6912da758c961#egg=pumpp
py==1.11.0
pyasn1==0.5.1
pyasn1-modules==0.3.0
pycparser==2.21
Pygments==2.14.0
pyparsing==3.1.4
pyrsistent==0.18.0
pytest==7.0.1
pytest-cov==4.0.0
python-dateutil==2.9.0.post0
pytz==2025.2
requests==2.27.1
requests-oauthlib==2.0.0
resampy==0.4.3
rsa==4.9
scikit-learn==0.24.2
scipy==1.5.4
six==1.15.0
snowballstemmer==2.2.0
sortedcontainers==2.4.0
soundfile==0.13.1
Sphinx==5.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
tensorboard==2.6.0
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow==2.6.2
tensorflow-estimator==2.6.0
termcolor==1.1.0
threadpoolctl==3.1.0
tomli==1.2.3
typing-extensions==3.7.4.3
urllib3==1.26.20
Werkzeug==2.0.3
wrapt==1.12.1
zipp==3.6.0

name: pumpp
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - absl-py==0.15.0
      - alabaster==0.7.13
      - appdirs==1.4.4
      - astunparse==1.6.3
      - attrs==22.2.0
      - audioread==3.0.1
      - babel==2.11.0
      - cached-property==1.5.2
      - cachetools==4.2.4
      - cffi==1.15.1
      - charset-normalizer==2.0.12
      - clang==5.0
      - coverage==6.2
      - dataclasses==0.8
      - decorator==5.1.1
      - docutils==0.18.1
      - flatbuffers==1.12
      - gast==0.4.0
      - google-auth==1.35.0
      - google-auth-oauthlib==0.4.6
      - google-pasta==0.2.0
      - grpcio==1.48.2
      - h5py==3.1.0
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - jams==0.3.4
      - jinja2==3.0.3
      - joblib==1.1.1
      - jsonschema==3.2.0
      - keras==2.6.0
      - keras-preprocessing==1.1.2
      - librosa==0.9.2
      - llvmlite==0.36.0
      - markdown==3.3.7
      - markupsafe==2.0.1
      - mir-eval==0.8.2
      - numba==0.53.1
      - numpy==1.19.5
      - numpydoc==1.1.0
      - oauthlib==3.2.2
      - opt-einsum==3.3.0
      - packaging==21.3
      - pandas==1.1.5
      - pluggy==1.0.0
      - pooch==1.6.0
      - protobuf==3.19.6
      - py==1.11.0
      - pyasn1==0.5.1
      - pyasn1-modules==0.3.0
      - pycparser==2.21
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pyrsistent==0.18.0
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - requests==2.27.1
      - requests-oauthlib==2.0.0
      - resampy==0.4.3
      - rsa==4.9
      - scikit-learn==0.24.2
      - scipy==1.5.4
      - six==1.15.0
      - snowballstemmer==2.2.0
      - sortedcontainers==2.4.0
      - soundfile==0.13.1
      - sphinx==5.3.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - tensorboard==2.6.0
      - tensorboard-data-server==0.6.1
      - tensorboard-plugin-wit==1.8.1
      - tensorflow==2.6.2
      - tensorflow-estimator==2.6.0
      - termcolor==1.1.0
      - threadpoolctl==3.1.0
      - tomli==1.2.3
      - typing-extensions==3.7.4.3
      - urllib3==1.26.20
      - werkzeug==2.0.3
      - wrapt==1.12.1
      - zipp==3.6.0
prefix: /opt/conda/envs/pumpp

tests/test_core.py::test_pump_sampler[11025-128-None-1-None] tests/test_core.py::test_pump_sampler[11025-128-None-1-10] tests/test_core.py::test_pump_sampler[11025-128-None-5-None] tests/test_core.py::test_pump_sampler[11025-128-None-5-10] tests/test_core.py::test_pump_sampler[11025-128-1-1-None] tests/test_core.py::test_pump_sampler[11025-128-1-1-10] tests/test_core.py::test_pump_sampler[11025-128-1-5-None] tests/test_core.py::test_pump_sampler[11025-128-1-5-10] tests/test_core.py::test_pump_sampler[11025-512-None-1-None] tests/test_core.py::test_pump_sampler[11025-512-None-1-10] tests/test_core.py::test_pump_sampler[11025-512-None-5-None] tests/test_core.py::test_pump_sampler[11025-512-None-5-10] tests/test_core.py::test_pump_sampler[11025-512-1-1-None] tests/test_core.py::test_pump_sampler[11025-512-1-1-10] tests/test_core.py::test_pump_sampler[11025-512-1-5-None] tests/test_core.py::test_pump_sampler[11025-512-1-5-10] tests/test_core.py::test_pump_sampler[22050-128-None-1-None] tests/test_core.py::test_pump_sampler[22050-128-None-1-10] tests/test_core.py::test_pump_sampler[22050-128-None-5-None] tests/test_core.py::test_pump_sampler[22050-128-None-5-10] tests/test_core.py::test_pump_sampler[22050-128-1-1-None] tests/test_core.py::test_pump_sampler[22050-128-1-1-10] tests/test_core.py::test_pump_sampler[22050-128-1-5-None] tests/test_core.py::test_pump_sampler[22050-128-1-5-10] tests/test_core.py::test_pump_sampler[22050-512-None-1-None] tests/test_core.py::test_pump_sampler[22050-512-None-1-10] tests/test_core.py::test_pump_sampler[22050-512-None-5-None] tests/test_core.py::test_pump_sampler[22050-512-None-5-10] tests/test_core.py::test_pump_sampler[22050-512-1-1-None] tests/test_core.py::test_pump_sampler[22050-512-1-1-10] tests/test_core.py::test_pump_sampler[22050-512-1-5-None] tests/test_core.py::test_pump_sampler[22050-512-1-5-10]
tests/test_core.py::test_transform[None-11025-128-tests/data/test.ogg] tests/test_core.py::test_transform[None-11025-512-tests/data/test.ogg] tests/test_core.py::test_transform[None-22050-128-tests/data/test.ogg] tests/test_core.py::test_transform[None-22050-512-tests/data/test.ogg] tests/test_core.py::test_transform[tests/data/test.jams-11025-128-tests/data/test.ogg] tests/test_core.py::test_transform[tests/data/test.jams-11025-512-tests/data/test.ogg] tests/test_core.py::test_transform[tests/data/test.jams-22050-128-tests/data/test.ogg] tests/test_core.py::test_transform[tests/data/test.jams-22050-512-tests/data/test.ogg] tests/test_core.py::test_transform[jam2-11025-128-tests/data/test.ogg] tests/test_core.py::test_transform[jam2-11025-512-tests/data/test.ogg] tests/test_core.py::test_transform[jam2-22050-128-tests/data/test.ogg] tests/test_core.py::test_transform[jam2-22050-512-tests/data/test.ogg] tests/test_core.py::test_pump[None-11025-128-tests/data/test.ogg] tests/test_core.py::test_pump[None-11025-512-tests/data/test.ogg] tests/test_core.py::test_pump[None-22050-128-tests/data/test.ogg] tests/test_core.py::test_pump[None-22050-512-tests/data/test.ogg] tests/test_core.py::test_pump[tests/data/test.jams-11025-128-tests/data/test.ogg] tests/test_core.py::test_pump[tests/data/test.jams-11025-512-tests/data/test.ogg] tests/test_core.py::test_pump[tests/data/test.jams-22050-128-tests/data/test.ogg] tests/test_core.py::test_pump[tests/data/test.jams-22050-512-tests/data/test.ogg] tests/test_core.py::test_pump[jam2-11025-128-tests/data/test.ogg] tests/test_core.py::test_pump[jam2-11025-512-tests/data/test.ogg] tests/test_core.py::test_pump[jam2-22050-128-tests/data/test.ogg] tests/test_core.py::test_pump[jam2-22050-512-tests/data/test.ogg]
tests/test_core.py::test_pump_empty[None-11025-128-tests/data/test.ogg] tests/test_core.py::test_pump_empty[None-11025-512-tests/data/test.ogg] tests/test_core.py::test_pump_empty[None-22050-128-tests/data/test.ogg] tests/test_core.py::test_pump_empty[None-22050-512-tests/data/test.ogg] tests/test_core.py::test_pump_empty[tests/data/test.jams-11025-128-tests/data/test.ogg] tests/test_core.py::test_pump_empty[tests/data/test.jams-11025-512-tests/data/test.ogg] tests/test_core.py::test_pump_empty[tests/data/test.jams-22050-128-tests/data/test.ogg] tests/test_core.py::test_pump_empty[tests/data/test.jams-22050-512-tests/data/test.ogg] tests/test_core.py::test_pump_empty[jam2-11025-128-tests/data/test.ogg] tests/test_core.py::test_pump_empty[jam2-11025-512-tests/data/test.ogg] tests/test_core.py::test_pump_empty[jam2-22050-128-tests/data/test.ogg] tests/test_core.py::test_pump_empty[jam2-22050-512-tests/data/test.ogg] tests/test_core.py::test_pump_add[11025-128] tests/test_core.py::test_pump_add[11025-512] tests/test_core.py::test_pump_add[22050-128] tests/test_core.py::test_pump_add[22050-512]
pumpp/core.py pumpp/version.py
pumpp/core.py pumpp/version.py