Skip to content

Commit

Permalink
Use a proper random number and pass it through flags
Browse files Browse the repository at this point in the history
  • Loading branch information
magopian committed Aug 8, 2019
1 parent 3677ba7 commit 7daa5b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Expand Up @@ -9,9 +9,10 @@
<body> <body>
<div id="elm"></div> <div id="elm"></div>
<script> <script>
let seed = Math.random() * 100; // A random number between 0 and 100.
var app = Elm.Main.init({ var app = Elm.Main.init({
node: document.getElementById('elm'), node: document.getElementById('elm'),
flags: 42 flags: Math.round(seed)
}); });
</script> </script>
</body> </body>
Expand Down

0 comments on commit 7daa5b2

Please sign in to comment.