DEV Community

LilTMGaming
LilTMGaming

Posted on

stars

function randomNumber(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min
}
const STAR_COUNT = 100
let result = ""
for(let i = 0; i < STAR_COUNT; i++){
result +=
${randomNumber(-50, 50)}vw ${randomNumber(-50, 50)}vh ${randomNumber(0, 3)}px ${randomNumber(0, 3)}px #fff,
}
console.log(result.substring(0, result.length - 1))

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post