Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Help for Random Number Generation

Hi, Guys,
I would really appreciate if any one of you guys can help me with the
following question.

I want to generate two numbers a, b which satisfies the following conditions
1. a<0, b0 and
2. b-a always lies between 0.2 and 0.8.

Much Thanks for your help

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dq dq is offline
external usenet poster
 
Posts: 46
Default Help for Random Number Generation

A1: =-RANDBETWEEN(0,9999999)/10000
A2: -RANDBETWEEN(-(A1+0.8)*10000,-(A1+0.2)*10000)/10000

Change the values 9999999 and 10000 according to the range and
accuracy you require.

DQ

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Help for Random Number Generation

For b in B1 enter:

=0.6*RAND()+0.2

For a in A1 enter:

=-(0.8-B1)*RAND()

--
Gary''s Student - gsnu200719
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 92
Default Help for Random Number Generation

Hello,

Put into A1:
=-RAND()*1E14
and into B1:
=-A1+RAND()*(0.8-0.2)+0.2

You can substitute 1E14 by any smaller number 0.

Regards,
Bernd

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
random number generation Ahmad Excel Discussion (Misc queries) 3 November 6th 06 06:27 PM
random number generation scotjo Excel Worksheet Functions 4 January 9th 06 04:06 PM
random number generation DSpec Excel Worksheet Functions 7 October 3rd 05 01:41 PM
I need help with random number generation David Stoddard Excel Worksheet Functions 10 March 28th 05 07:06 AM
random number generation kurtrambis Excel Worksheet Functions 1 November 1st 04 09:23 PM


All times are GMT +1. The time now is 07:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"