I'm trying to choose colors for my website. Can you make me some javascript to change the body color to a random color on the click of a button?
system
main apni website ke liye rang chunane kii koshish kar rahaa hum.kya aap mujhe ek batan ke clic par sharir ke rang ko yadrichhik rang main badalane ke liye kuch javascript bana sakate hai?
user
zarur, yah code vahi karegaa jo aapako chahie.

window.addeventListener ('lod', fnction () {
  fnction colorrandomizer () {

  // prayek RGB channel ke liye ek yadrichhik sankhya kii gananaa karen
    const red = math.floor (math.random () * 256);
    const Green = Math.floor (Math.random () * 256);
    const blue = math.floor (math.random () * 256);

  // rang ko ek arjibi string main samet len or ise dastauez main lagu karen
    const color = `rgb ($ {laal}, $ {haraa}, $ {nila})`;
    document.body.style.backgroundcolor = rang;
  }

 // Colorrandomizer ko kol karne ke liye ek batan joden
  const batan = document.createelement ('batan');
  button.textContent = 'rang badalen';
  button.addeventListener ('clic', colorrandomizer);
  document.body.appendchild (batan);
});
assistant
<|system|>
</s>
<|user|>
main apni website ke liye rang chunane kii koshish kar rahaa hum.kya aap mujhe ek batan ke clic par sharir ke rang ko yadrichhik rang main badalane ke liye kuch javascript bana sakate hai?</s>
<|assistant|>
zarur, yah code vahi karegaa jo aapako chahie.

window.addeventListener ('lod', fnction () {
  fnction colorrandomizer () {

  // prayek RGB channel ke liye ek yadrichhik sankhya kii gananaa karen
    const red = math.floor (math.random () * 256);
    const Green = Math.floor (Math.random () * 256);
    const blue = math.floor (math.random () * 256);

  // rang ko ek arjibi string main samet len or ise dastauez main lagu karen
    const color = `rgb ($ {laal}, $ {haraa}, $ {nila})`;
    document.body.style.backgroundcolor = rang;
  }

 // Colorrandomizer ko kol karne ke liye ek batan joden
  const batan = document.createelement ('batan');
  button.textContent = 'rang badalen';
  button.addeventListener ('clic', colorrandomizer);
  document.body.appendchild (batan);
});</s>
