+ Reply to Thread
Results 1 to 5 of 5

How can i generate a random number between 0.8 and 1.2

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    35

    How can i generate a random number between 0.8 and 1.2

    hi guys,

    Is it possible to use the =randbetween() function to generate a random number between 0.8 and 1.2.

    thanks

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: How can i generate a random number between 0.8 and 1.2

    randbetween does integers, so you would need to do something like:
    =randbetween(8,12)/10
    which would give you one decimal place.
    =RANDBETWEEN(8000,12000)/10000
    would give you four decimal places
    and so on

  3. #3
    Registered User
    Join Date
    08-10-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: How can i generate a random number between 0.8 and 1.2

    cheers mate

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: How can i generate a random number between 0.8 and 1.2

    Or use the RAND() function, which generates a random real number between 0 and 1. http://office.microsoft.com/en-us/ma...974.aspx?CTT=1 The help file also explains how to use the RAND() function to get a random number between any real numbers a and b =rand()*(b-a)+a
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    01-03-2014
    Location
    Johannesburg South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How can i generate a random number between 0.8 and 1.2

    Now that's something new. Thank you

+ 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. Replies: 8
    Last Post: 11-18-2013, 04:24 PM
  2. Replies: 5
    Last Post: 06-21-2013, 10:40 AM
  3. [SOLVED] Generate random 6-16-byte random hexadecimal number
    By jsamuelshn in forum Excel General
    Replies: 6
    Last Post: 07-20-2012, 10:38 AM
  4. generate a random number and use if function to generate new data
    By Dogdoc1142 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2006, 10:50 PM
  5. [SOLVED] Generate Random Number
    By Glenn in forum Excel General
    Replies: 1
    Last Post: 08-11-2005, 03:05 PM

Tags for this Thread

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