Skewed Random Number
- From: shuchalle@xxxxxxxxxxx
- Date: 19 Sep 2005 08:56:11 -0700
Hello,
I am writing a program in Java. I have following requirements.
We have large data set points whose value will range from 100 to 1500.
We need to select 10% of dataset points randomly. So if there were
40000 data points - we need to select 4000 points on random basis.
Now you say - well that's easy. Well - here is the twist.
We need to "skew" the randomness so that more points are selected
towards higher number as in near to 1500 and less points are selected
toward lower end of spectrum that is 100. But all in all -still 10% (or
4000 out of 40000 dataset points) of total points out of data points
should be selected.
We can use some sort of "logarithmic skewage" - if there is such a
word.
Any clever ideas or hints would be much appreciated!
Regards,
AZXML
.
- Follow-Ups:
- Re: Skewed Random Number
- From: Roedy Green
- Re: Skewed Random Number
- From: Thomas Fritsch
- Re: Skewed Random Number
- From: Oliver Wong
- Re: Skewed Random Number
- Prev by Date: Re: Flowcharting Code in Java
- Next by Date: webapp forwarding without web.xml
- Previous by thread: Capturing screen messages from Runtime.getRuntime().exec("myprogram")
- Next by thread: Re: Skewed Random Number
- Index(es):
Relevant Pages
|