So I did the random text project, after less that an hour of trying (mostly coping & pasting), I would say it was easy mostly because I didn’t put any advanced techniques in the code, all of the quotes are per-determined.
function generateRandomNumber(num) {
// Gets # from 0 -> num - 1
return Math.floor(Math.random() * num)
}
//list of wise words of historical figuers
const wisdom = [
"Doubt is the origin of wisdom. Augustine of Hippo",
"The truest wisdom is a resolute determination. Napoleon Bonaparte",
"Science is organized knowledge. Wisdom is organized life. Immanuel Kant",
"Foolishness is a twin sister of wisdom. Witold Gombrowicz",
"Wisdom is not a product of schooling but of the lifelong attempt to acquire it. Albert Einstein",
"Wisdom is the power to put our time and our knowledge to the proper use. Thomas J. Watson",
"It is not the man who has too little, but the man who craves more, that is poor. Seneca",
"A wise man never loses anything, if he has himself. Michel de Montaigne",
"Silence is the sleep that nourishes wisdom. Francis Bacon",
"Discipline is wisdom and vice versa. M. Scott Peck",
"Great wisdom is generous; petty wisdom is contentious. Zhuangzi",
"Wisdom sails with wind and time. John Florio",
"A symptom of wisdom is curiosity. The evidence is calmness and perseverance. The causes are experimentation and understanding. Maxime Lagacé",
This file has been truncated. show original