Завершен

Build JS function that generates random numbers with given conditions

I am looking for a developer to create a JS function that creates an array of objects. There are conditions for this function:

1) Range - the numbers should be in range from 2-12.

2) Array length - it has to produce exact length every time the function runs (more details within the private message).

3) Output - each object should contain two keys:

a) number: with value between 2 - 12

b) randomNumber: with value between 2-12

The output should not contain the same numbers (when replacing the values), so the example shown below has the incorrect output:

1) { number: 4, randomNumber: 6 }

2) { number: 6, randomNumber: 4 }

There are additional conditions for the number object (f.e. number: 4 should appear at least 2 times but no more than 4 times). Each number object from range between 2-12 has different conditions (more details in the private message).

Навыки: JavaScript, PHP, jQuery / Prototype, HTML, Архитектура ПО

О клиенте:
( 0 отзыв(-а, -ов) ) Bielany Wroclawskie, Poland

ID проекта: #32534632

Поручен:

veselidevelop

Hello. It is interesting enough, so algorithmic. Could you give me detail through chat?

$30 USD за 1 день
(5 отзывов(-а))
2.6

10 фрилансеров(-а) готовы выполнить эту работу в среднем за $29

jahangirkhan365

Hello there, I would like to build you a JS function. I have experience of 5 + Years in WordPress/Shopify, HTML/CSS,Bootstrap,JavaScript,PHP, Laravel, CodeIgniter, and MySQL development. I am relating to what you need. Больше

$30 USD за 1 день
(52 отзывов(-а))
5.9
shanymathew

Hello Sir am expert in JavaScript i can do this js function perfectly wish to work for you waiting for your reply. please message me Thank You Shany Mathew

$50 USD за 1 день
(66 отзывов(-а))
5.5
anilksen84i

Dear Client, I hope you are doing well! I read out all the description and i clearly understood your project requirements. Thank you for this wonderfully opportunity. I would like to apply as a web developer in your Больше

$30 USD за 2 дней(-я)
(8 отзывов(-а))
2.9
veljkodimcic111

Hi there. I can provide the function that you want in only 30min. please message me. thanks

$20 USD за 1 день
(0 отзывов(-а))
0.0
DevPrecise

I will create function for Create Random object from range you will give like 2-12. I still have query for "The output should not contain the same numbers (when replacing the values), so the example shown below has th Больше

$30 USD за 1 день
(0 отзывов(-а))
0.0
muthonimuriuki22

Am well experience in javascript functions its what I deal with in my day to day tasks,,I approach problems logically and come up with the most efficient and strategic solution

$27 USD за 1 день
(0 отзывов(-а))
0.0
NisargSheth13

i have 4ys experience in JS

$18 USD за 2 дней(-я)
(0 отзывов(-а))
0.0
muneebd

Hi, Let's connect on the chat and discuss in detail the Output as I would like to understand more about the last part. Please connect on the chat and review our introduction and portfolio to understand us. https://dri Больше

$20 USD за 7 дней(-я)
(0 отзывов(-а))
0.0
movlavi1324

I am a JavaScript developer and can do it for you in just one day. Please message me for more details. Thanks

$30 USD за 1 день
(0 отзывов(-а))
0.0