13 lines
222 B
HTML
13 lines
222 B
HTML
|
<html><body><script>
|
||
|
|
||
|
let coin = 0
|
||
|
coin = Math.random()
|
||
|
console.log(coin)
|
||
|
if (coin >= .5){
|
||
|
console.log("tails")
|
||
|
}
|
||
|
if (coin < .5){
|
||
|
console.log("heads")
|
||
|
}
|
||
|
|
||
|
</script></body></html>
|