LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default RAND() Volatility

I want to use Excel's RAND() function to calculate random points within
a circle. To do this, I want first to just calculate a random point on
the y-axis, less than the radius's value away from the center. That's
no problem.

But then I want to use those values generated in a second column, to
generate the correspondent random values in the x-axis. For instance,
the farther the y-value is from the center of the circle, the smaller I
can let the x-value be. The x-value becomes dependent on the y-value.

But every time I put in the calculation, the y-values change (based on
the volatility of the RAND() function), and the x-values are calculated
using the old y-values, and this creates several invalid points (i.e.
points outside of the circle).

Is there a way to get Excel to fix the random values in the first
column after it computes them, and subsequently use them to calculate
the values in the second column?

 
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



All times are GMT +1. The time now is 11:12 PM.

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

About Us

"It's about Microsoft Excel"