JSFiddle - React, Tailwind, and code Playground
by SanjayVyas
JavaScript
//% Nothing serious... just time pass
//% This is not my original creation but inspired by a post written in a different language
//# [Sanjay Vyas]
const oscillation = ["Thiraktey", "Simat-tey", "Jhulastey"];
const facialFeature = ["nazron", "hothon", "naino", "gaalon", "maathey"];
const naturalPhenomena = ["boond", "oas", "baarish", "hawa"];
const actions = ["phisalna", "girna", "tapakna", "ulajhna", "sulajhna", "nikalna", "sawarna"];
const randomEmotions = ["yaad", "darata", "hasata", "rulata"];
const ufoMovement = ["duur jaana", "paas aana", "roshni phailana", "guumm ho jaana"];
function getPhrase() {
return oscillation[Math.floor(Math.random() * oscillation.length)] +
" hue " +
facialFeature[Math.floor(Math.random() * facialFeature.length)] +
" se " +
naturalPhenomena[Math.floor(Math.random() * naturalPhenomena.length)] +
" ka " +
actions[Math.floor(Math.random() * actions.length)] +
" " +
randomEmotions[Math.floor(Math.random() * randomEmotions.length)] +
" hai mujhe tera wahi " +
ufoMovement[Math.floor(Math.random() * ufoMovement.length)];
}
console.log(getPhrase());