Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Random functions

$
0
0

Replies: 0

Hello there!

Help to deal with the problem. I want to make button, when you press it – select randomly number. From 0 to 9. And, depending on the resulting number, the text field was shown.

I tried to create a button and paste it “Math.floor (Math.random () * 10);”. And then try pass the value to the calculated field. But I did not succeed.

Tell me, how to do it right?


Viewing all articles
Browse latest Browse all 59525

Trending Articles