+ Reply to Thread
Results 1 to 7 of 7

How to generate a bunch of random numbers???

  1. #1
    Registered User
    Join Date
    02-05-2006
    Posts
    9

    How to generate a bunch of random numbers???

    I know how to get one random number by just using "RAND(x,y)" but how do I get 100 random numbers?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Thumbs up

    http://www.uis.edu/ctl/training/deta...ingnumbers.htm

    A little insight on random()

  3. #3
    Niek Otten
    Guest

    Re: How to generate a bunch of random numbers???

    http://www.tushar-mehta.com/excel/ne..._and_sort.html

    --
    Kind regards,

    Niek Otten

    "ddawg09" <[email protected]> wrote in message
    news:[email protected]...
    >
    > I know how to get one random number by just using "RAND(x,y)" but how do
    > I get 100 random numbers?
    >
    >
    > --
    > ddawg09
    > ------------------------------------------------------------------------
    > ddawg09's Profile: http://www.excelforum.com/member.php...o&userid=31205
    > View this thread: http://www.excelforum.com/showthread...hreadid=521543
    >




  4. #4
    Registered User
    Join Date
    02-05-2006
    Posts
    9
    What if you only want random numbers within a given range. I need 100 numbers between 5.5 and 10.5 but I did the Randombetween function and dragged it down but all it did was pretty much copy.

  5. #5
    David McRitchie
    Guest

    Re: How to generate a bunch of random numbers???

    That is covered very well in the Excel help look up RAND

    and I can't improve on that part. I could point you to a macro I use.
    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "ddawg09" <[email protected]> wrote in message
    news:[email protected]...
    >
    > What if you only want random numbers within a given range. I need 100
    > numbers between 5.5 and 10.5 but I did the Randombetween function and
    > dragged it down but all it did was pretty much copy.
    >
    >
    > --
    > ddawg09
    > ------------------------------------------------------------------------
    > ddawg09's Profile: http://www.excelforum.com/member.php...o&userid=31205
    > View this thread: http://www.excelforum.com/showthread...hreadid=521543
    >




  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by ddawg09
    What if you only want random numbers within a given range. I need 100 numbers between 5.5 and 10.5 but I did the Randombetween function and dragged it down but all it did was pretty much copy.
    Don't know if you've got the right formula (RANDBETWEEN will only give you integers) but if you dragged formula down and the result in each cell is the same then calculation may be set to manual. Hit F9 to re-calculate or set calculation to Automatic using Tools menu and Options....

  7. #7
    Biff
    Guest

    Re: How to generate a bunch of random numbers???

    Hi!

    If you're using the RANDBETWEEN function it only returns integers (whole
    numbers).

    You could try this:

    =RANDBETWEEN(55,105)/10

    Biff

    "ddawg09" <[email protected]> wrote in
    message news:[email protected]...
    >
    > What if you only want random numbers within a given range. I need 100
    > numbers between 5.5 and 10.5 but I did the Randombetween function and
    > dragged it down but all it did was pretty much copy.
    >
    >
    > --
    > ddawg09
    > ------------------------------------------------------------------------
    > ddawg09's Profile:
    > http://www.excelforum.com/member.php...o&userid=31205
    > View this thread: http://www.excelforum.com/showthread...hreadid=521543
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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