in

guys can you help me improve my d6 function? (repost becuse I made it wrong the first time)

guys can you help me improve my d6 function? (repost becuse I made it wrong the first time) | random-memes, function-memes, IT-memes, public-memes | ProgrammerHumor.io
random-memes, function-memes, IT-memes, public-memes | ProgrammerHumor.io

Content

public static int d6() if ((int) (Math.random()61)6) return 6; if (Math.random ()0.2) return 5; if (Math.random() 0.75) return 4; if (Math.random()1.5Math.random ()) return 3; if (isEven((int)(Math.random ()2))) return 2; if (true) return 1;