SHARE
TWEET

Untitled

a guest Jul 21st, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export const renk = () => {
  2.   let hex = [
  3.     "0",
  4.     "1",
  5.     "2",
  6.     "3",
  7.     "4",
  8.     "5",
  9.     "6",
  10.     "7",
  11.     "8",
  12.     "9",
  13.     "a",
  14.     "b",
  15.     "c",
  16.     "d",
  17.     "e",
  18.     "f"
  19.   ];
  20.   let color = [];
  21.   for (let i = 0; i < 6; i++) {
  22.     c = hex[parseInt(Math.random() * 16)];
  23.     color.push(c);
  24.   }
  25.   return "#" + color.join("");
  26. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top