Javascript: another exercise in randomness

The tutor continues to explore random functions.

In several of my earlier posts – this one, for example – I talk about random numbers simulated by computer functions. Today’s post shows another such application.

When the button is clicked, a sentence will be written below it whose letters are sized randomly by a Javascript function. The button can be clicked repeatedly to watch the letters’ sizes change.

Source:

w3schools.com

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply