Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

For returning the random numbers would it be ok to use drop if we could figure out how many randome numbers were required for function g and h?

0
Posted

For returning the random numbers would it be ok to use drop if we could figure out how many randome numbers were required for function g and h?

0

This is very error prone. If you change g or h to use fewer or more random numbers, you may forget to modify the drop in its caller(s). • For the function “generations” it takes in the initial population, do we have to input the initial population when writing the function or is the population only entered when testing the function because the initial population will always be the same? The initial population consists of random programs. Take a look at GP_Main.hs. You will see that create_population is called to create the initial population of random programs. • If a function returns a list of remaining infinite numbers, but it calls 2 functions which require an infinite list, are the remaining numbers the initial list minus the list of all the random numbers used or the longest list used? Or does it not really matter at all? If function f calls g and h both of which require random numbers, then you could say get the remaining list of random numbers from g and pass it to h which then

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123