Skewed Random Number



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

.



Relevant Pages

  • RE: Dealing with marketing types...
    ... get it in writing... ... is the tendency to dump the guythat brought them to the party. ... little pay on the promise that you will be rewarded when/if success comes. ... > having a Java product would make them more attractive. ...
    (comp.lang.python)
  • Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
    ... > without writing a line of code. ... > A few months ago I had an introductory class on Java programming. ... Yeah, VB is what many people call a RAD language, for Rapid Application ... Java is very much NOT a RAD language; ...
    (comp.lang.cobol)
  • Re: .Net is more memory safe?
    ... I don't underestimate anybody's intelligence - except somebody who thinks he ... Are you telling me that the people writing to Java or .NET are "more ... What I'm saying is that there are a lot of mediocre programmers ...
    (borland.public.delphi.non-technical)
  • Re: Check if NO key is pressed?
    ... > I'm writing a nifty littly multiplayer Pong-clone applet, ... > I want to check if NO KEY AT ALL is pressed in my run-loop. ... A typical event-driven Java UI uses threads to create activity not dependent ... in your run loop. ...
    (comp.lang.java.programmer)
  • Re: Share library calls from java and c code results are different
    ... > this C code is responsible for writing the files in both cases (when I ... > call it from java or when I call it from C). ... I ask this because if the floating-point values are transferred completely ... of a science whose results are adhered to strictly by all modern languages. ...
    (comp.lang.java.programmer)