2Elm.Random = function() {
3 var inRange = function(min) { return function(max) {
4 return Elm.Signal.constant(Math.floor(Math.random() * (max-min+1)) + min);
7 var randomize = function(min) { return function(max) { return function(signal) {
8 function f(x) { return Math.floor(Math.random() * (max-min+1)) + min; }
9 return Elm.Signal.lift(f)(signal);
13 return { inRange:inRange, randomize:randomize };
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list