Skip to content

Instantly share code, notes, and snippets.

@nwtgck
Created January 11, 2020 10:57
Show Gist options
  • Save nwtgck/23ac9f937427b7374895cfed3e8f8726 to your computer and use it in GitHub Desktop.
Save nwtgck/23ac9f937427b7374895cfed3e8f8726 to your computer and use it in GitHub Desktop.
<input id="myinput">
<script>
const r = Math.random();
window.myinput.value = r;
console.log(r);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment