Skip to content
Permalink
Browse files

Use a proper random number and pass it through flags

  • Loading branch information...
magopian committed Aug 8, 2019
1 parent 3677ba7 commit 7daa5b2a0d74c78e104698f8e0ee7768e7d87616
Showing with 2 additions and 1 deletion.
  1. +2 −1 index.html
@@ -9,9 +9,10 @@
<body>
<div id="elm"></div>
<script>
let seed = Math.random() * 100; // A random number between 0 and 100.
var app = Elm.Main.init({
node: document.getElementById('elm'),
flags: 42
flags: Math.round(seed)
});
</script>
</body>

0 comments on commit 7daa5b2

Please sign in to comment.
You can’t perform that action at this time.