# Tagged Questions

25 views

### The probability that uniformly distributed integers sum to a given integer

A recent CTF had a problem involving the summation of randomly distributed integers. Specifically: Consider a set $\{X_m\}$ of $M$ integers uniformly selected (with replacement) from the set of ...
62 views

### Convolution of maximum and minimum of uniform random variables

Let $X_1,\ldots, X_n$ be $n$ independent random variables uniformly distributed on $[0,1]$. Let be $Y=\min(X_i)$ and $Z=\max(X_i)$. Calculate the cdf of $(Y,Z)$ and verify $(Y,Z)$ has independent ...
50 views

### Distribute a population size based on fractions using random number generator drand48()

I have a population size of say 5000 people. Every person belongs to either A, B, C or D category. I want to split the population as per a given fraction provided by user. for example, 99% of A, 0.4% ...
68 views

### How to construct a uniform joint distribution

I have a question that is critical to my work, but I am not sure if it is any possible. Assume that you have two uniform random variables X and Y. The product distribution of Z=XY is not a uniform. ...
34 views

### choose a list of words such that have equal letter frequency

I have a big list meaning full Words. surely letter frequency of this word list is different for each letter. Now my problem is to find a way to randomly select words from this word list to a new ...
1k views

### Probability density of Continuous uniform distribution over the unit circle

If we want to chose a point $(x,y)$ uniformly at random from a unit circle in a plane, why is the joint probability density of the random variable $f(x,y) = \frac{1}{\pi}$ for $x^2+y^2\leq1$? The ...
336 views

### Uniform distribution of points on the surface of a circle around a randomly chosen point

In a Monte Carlo simulation i have encountered the following problem: given a unity vector u defining a point A on the surface of a unity sphere, i must randomly determine a new vector forming an ...
328 views

### Normal Random Variable - uniform distribution

So here's the question I'm trying to solve: A stock price movement model supposes that if the current stock price is s, then, after one period, the stock price will be $us$ with probability ...
There is stream (sequence) of uniform random integers $x_i$, each integer in $[0,N-1]$ range, where N is not power of 2. I need to convert it to sequence of integers [0..255] (bytes), such that ...