The Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.


Math Forum » Discussions » sci.math.* » sci.math

Topic: How to make weighted random numbers?
Replies: 7   Last Post: Feb 28, 2009 3:49 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Kevin Stone

Posts: 26
Registered: 12/13/04
Re: How to make weighted random numbers?
Posted: Feb 28, 2009 3:49 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> Say, I want to fill a sphere uniformly with random dots
> I don't want a uniform sphere


Assuming you want the centre more densely populated...

How about randomly filling a unit sphere uniformly and then for every point
generated run it through a non-linear translation than maps 0 to 0 and 1 to
infinity through any desired scaling method?

--
Kev





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2017. All Rights Reserved.