File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ _318 TILs and counting..._
109109- [ Character Codes from Keyboard Listeners] ( javascript/character-codes-from-keyboard-listeners.md )
110110- [ Create An Array Containing 1 To N] ( javascript/create-an-array-containing-1-to-n.md )
111111- [ Enable ES7 Transforms With react-rails] ( javascript/enable-es7-transforms-with-react-rails.md )
112+ - [ Random Cannot Be Seeded] ( javascript/random-cannot-be-seeded.md )
112113- [ Splat Arguments To A Function] ( javascript/splat-arguments-to-a-function.md )
113114- [ Throttling A Function Call] ( javascript/throttling-a-function-call.md )
114115- [ Transforming ES6 and JSX With Babel 6] ( javascript/transforming-es6-and-jsx-with-babel-6.md )
Original file line number Diff line number Diff line change 1+ # Random Cannot Be Seeded
2+
3+ In JavaScript, you can use ` Math.random() ` to get a * sorta* random value.
4+
5+ ``` javascript
6+ > Math .random ()
7+ 0.5130641541909426
8+ ```
9+
10+ Most programming languages give you a method of seeding the random number
11+ generator for determinism. Unfortunately, JavaScript provides no way for
12+ choosing or resetting the seed to ` Math.random() ` .
13+
14+ [ source] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random )
You can’t perform that action at this time.
0 commit comments