Randomizing array elements

Job finished

Execution time 2 hours
Feedback from employee
great customer, polite with clear thoughts
Feedback from customer
Very good programmer. Made everything fast and with great quality.

Specification


Hi,


I would like to have a code to get some array "a" with n elements, and fill array "b" with the same elements from "a" but with random sequence.

It should be some "void" function like this:

void Array_Rand(double &a[],double &b[])
  {
   ...
   ...
   ...
  }


For example:

double a[10]={4,7,2,-8,3,-2,1,9,-9,5};
double b[];

After call the Array_Rand function it will generate elements in array "b":

b[10] =  3  7  -9  -2  5  4  -8  2  9  1


All elements came from array "a", but it was randomized.
It's important to not repeat any element.

For example, if the function in the first element of b[0] is iqual to a[3], so the a[3] will not be used anymore.





Responded

1
Developer 1
Rating
(44)
Projects
58
43%
Arbitration
8
50% / 38%
Overdue
7
12%
Free
Similar orders
I need opinions if it is possible to develop a panel for managing multiple orders for 28 Forex currency pairs for Metatrader 5. The main features should include: - Symbol selection for manual opening of multiple orders. - Stop-Loss/Take-Profit. - Option to close all open orders manually or automatically (by stop loss/take profit). The panel should allow you to select various currency pairs with different lot sizes to
Hello developers here, I need a professional developer that can help me to develop an mt5 trading bot that works according to my strategy, I will be sharing my strategy in the inbox, Let me know if you can develop it, I will be waiting for your response
Strategy To Be Used 1. Order Blocks (4HR, Daily And Weekly) 2. FVG (For Entry) 3. Fibonacci Levels (TP) 4. HH/LL ( SL) Works in 1HR & 4HR (TF) Risk to reward minimum 2:1 (Default) Winrate 53.21% (Accuracy) tested on Live account of 1000$ May 14th to May 31st You can change the risk per trade percent Per day DD Limit *it should takes multiple entries at the same price point when the price touches weekly/ daily
Requiero un EA basado en un indicador con las siguientes caracteristicas 1. Abra operacion con una señal que da el indicador, despues que la vela toque el indicador y cierre por encima del indicador 2. Que cierre operacion con SL y TP en % de perdida y ganancia 3, Que en cada señal abra un maximo de X operaciones y si pierde en la siguiente señal haga el doble operaciones y todas seran con el mismo lotaje Todos los
Hey greetings.i will like to convert my tradingview pinescript script to Metatrader 5 expert Advisor EA . Kindly apply for this job if you can convert my tradingview script for mt5 EA.Thanks
ETF arbitrage robot 30 - 50 USD
👋 Hey Great Developer, can you help me with my project did you trading bot for ETF that ES and NQ futures If you have recent one so i can check it I will be looking for great developer to bid for this project
I need to resolve some bugs that my indicator presents and pass it to mql5 The task will be done alone and only through anydesk, it is my way of working, if you do not have a problem with it, write to me privately to start working
I need an EA in based of this indicator. It have buffers. The owner told me it..., So I need an expert who can do this I will attached the file right now
HI, I'm looking for an experienced person who can add buy/sell indications and Alerts on existing Pinescript along with little modification of the script and the script should connect to MT5 platform using pineconnector MT5 platform should excute trade instantly as based on the alerts/indications on tradingview script
I am looking for an EA that allows you to make profits every month. For this, before buying, I would like to have a history over more than one year to see how the EA behaves. I don't know if you're selling EAs that are already ready for use

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
to 1 day(s)