Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

244
Visualizações
Random Generator(Node.js)

I have a script that randomly puts image art layers together and generates them, there are multiple races in the script for example a cat and a dog so their image layers dont get mixed together. Now what I want to achieve is having the races randomly generated but with some kind of weighing like for example 70% should be race 1 and 30% should be race 2.

For example right now it generates it like this: First it generates 50 of race 1 and then generates 50 of race 2, I would like it so it randomly switching back and forth between the races while still having certain percentages set. https://github.com/HashLips/nerdy_coder_clones_tutorial/blob/main/generative-art-opensource/index.js

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda