From f75c594238303c359b174522329423e1f5b0dfa4 Mon Sep 17 00:00:00 2001 From: Matt Hamil Date: Sun, 6 Nov 2016 19:54:19 -0600 Subject: [PATCH] Added note about potential file name conflicts --- architecture/effects/random.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/architecture/effects/random.md b/architecture/effects/random.md index 2d80702b..948f9f1e 100644 --- a/architecture/effects/random.md +++ b/architecture/effects/random.md @@ -80,7 +80,7 @@ update msg model = (Model newFace, Cmd.none) ``` -There are two new things here. **First**, there is now a branch for `NewFace` messages. When a `NewFace` comes in, we just step the model forward and do nothing. **Second**, we have added a real command to the `Roll` branch. This uses a couple functions from [the `Random` library](http://package.elm-lang.org/packages/elm-lang/core/latest/Random). Most important is `Random.generate`: +There are two new things here. **First**, there is now a branch for `NewFace` messages. When a `NewFace` comes in, we just step the model forward and do nothing. **Second**, we have added a real command to the `Roll` branch. This uses a couple functions from [the `Random` library](http://package.elm-lang.org/packages/elm-lang/core/latest/Random) (Note that you will get an error saying that Elm has found multiple modules named 'Random' if you name your file 'Random.elm'). Most important is `Random.generate`: ```elm Random.generate : (a -> msg) -> Random.Generator a -> Cmd msg