summaryrefslogtreecommitdiff
path: root/snippets/python-mode/numpy-random-seed
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/python-mode/numpy-random-seed')
-rw-r--r--snippets/python-mode/numpy-random-seed6
1 files changed, 6 insertions, 0 deletions
diff --git a/snippets/python-mode/numpy-random-seed b/snippets/python-mode/numpy-random-seed
new file mode 100644
index 0000000..1be05ec
--- /dev/null
+++ b/snippets/python-mode/numpy-random-seed
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: numpy random seed
+# key: nrs
+# --
+np.random.seed(`(random most-positive-fixnum)`)
+$0