Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

239
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!