+ Reply to Thread
Results 1 to 8 of 8

Pseudo Random Numbers Between Limits With Predetermined Average

  1. #1
    Registered User
    Join Date
    07-08-2014
    Location
    Dallas, TX
    MS-Off Ver
    2007
    Posts
    4

    Pseudo Random Numbers Between Limits With Predetermined Average

    Ok, so what I want to do is have a list of pseudo random numbers between limits.

    I want the list length to be determined by a number in a cell. Let's say C1 = 30, and that's the amount of numbers in our list.
    The limits for the list would be found in 2 other cells, upper and lower limits being C2 = 22 and C3 = 18 for this example.
    I also want the average to be determined by a number in a cell, let's say C4 = 20.

    I was thinking this could be done with a For loop and an Array somehow, but I can't figure out the logistics. Anyone got any ideas about this?

  2. #2
    Forum Contributor
    Join Date
    10-16-2014
    Location
    Center Line, Michigan, United States
    MS-Off Ver
    MS Office 2013
    Posts
    139

    Re: Pseudo Random Numbers Between Limits With Predetermined Average

    Hello brondius, and welcome to the forum.

    Everything you described above would be simple to do except setting the average, in my limited knowledge. It almost sounds like some kind of genetic algorithm. If you can describe logically how you would go about setting the average on a list of 30 random numbers, between 18 and 22, to 20, then maybe the logic can be described.
    Please click the star (add rep) if I helped!

  3. #3
    Registered User
    Join Date
    07-08-2014
    Location
    Dallas, TX
    MS-Off Ver
    2007
    Posts
    4

    Re: Pseudo Random Numbers Between Limits With Predetermined Average

    Heck, I tried to do Solver to give me a set of numbers >= 18 and <= 22 and setting the average to 20, but it just gave me 20 the whole way. I'm also trying to get it to be in Integers, I forgot to mention that. But it being in integers isn't as important as getting the numbers in there.

  4. #4
    Forum Contributor
    Join Date
    10-16-2014
    Location
    Center Line, Michigan, United States
    MS-Off Ver
    MS Office 2013
    Posts
    139

    Re: Pseudo Random Numbers Between Limits With Predetermined Average

    Here you go:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-08-2014
    Location
    Dallas, TX
    MS-Off Ver
    2007
    Posts
    4

    Re: Pseudo Random Numbers Between Limits With Predetermined Average

    Wow. That was phenomenal. I didn't think doing GoTo Rerun would work without taking a million years to recalculate.

    You are the bomb.com.

  6. #6
    Forum Contributor
    Join Date
    10-16-2014
    Location
    Center Line, Michigan, United States
    MS-Off Ver
    MS Office 2013
    Posts
    139

    Re: Pseudo Random Numbers Between Limits With Predetermined Average

    Thanks!

    It works well, but most likely that's because we're using integers. If we were to use random numbers to several decimel places, this would take a million years, lol!

    If you could, mark this thread as SOLVED, we would appreciate it.

  7. #7
    Registered User
    Join Date
    07-08-2014
    Location
    Dallas, TX
    MS-Off Ver
    2007
    Posts
    4

    Re: Pseudo Random Numbers Between Limits With Predetermined Average

    How do I do that, exactly?

  8. #8
    Forum Contributor
    Join Date
    10-16-2014
    Location
    Center Line, Michigan, United States
    MS-Off Ver
    MS Office 2013
    Posts
    139

    Re: Pseudo Random Numbers Between Limits With Predetermined Average

    Above your original post, you'll see something called "thread tools" under that dropdown, you should see an option to mark the thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] I have the average number i need but want to generate random numbers
    By Michaelsalmon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-20-2014, 05:40 PM
  2. [SOLVED] Random selection of names with no duplicates and ignoring a predetermined name list
    By iain.excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-16-2012, 06:51 PM
  3. [SOLVED] Generating Random Numbers between Upper & Lower Limits and without Repeats.
    By e4excel in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-17-2012, 09:42 AM
  4. Random set of lists with item limits
    By gv99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2008, 04:35 PM
  5. Finding a predetermined Sum from a List of Numbers
    By zshuford in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2007, 12:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1