Skip to content

Just like clojure.core/rand, clojure.core/rand-int, and clojure.core/rand-nth, except you can specify the seed.

License

Notifications You must be signed in to change notification settings

trystan/random-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-seed

Supply your own random seed to the clojure.core random functions.

Leiningen

[random-seed "1.0.1"] 

Usage

(ns example.core (:require [random-seed.core :refer :all]) (:refer-clojure :exclude [rand rand-int rand-nth shuffle])) (set-random-seed! 888) (rand 5) (rand-int 30) (rand-nth [:a :b :c]) (shuffle [:a :b :c]) 

License

Copyright © 2015 Trystan

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Just like clojure.core/rand, clojure.core/rand-int, and clojure.core/rand-nth, except you can specify the seed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •