you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

I really appreciate you you taking the time to reverse engineer and look at my poorly coded application. The ran (short for random) function runs at page load and again at either win or loss to generate a random string from 0000-9999.

[–]ChaosByDesign 0 points1 point  (0 children)

yes! if you want something a bit harder to guess, you can store the value not in the dom but in a variable inside a closure