LifeWorks

United Kingdom

fengsong.net

Age: 27

What I cannot create, I do not understand.

15h
comment How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
Thanks very much! I think this is the best solution! Appreciate it!
15h
revised How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
added 249 characters in body
15h
comment How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
@JasonB Thanks very much!!!!! This is perfect!
15h
accepted How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
Feb
7
comment How to generate two groups of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
@RustyStatistician The approach is the same as I came up with yesterday!!! In addition, $A$ and $B$ need to be carefully calculated so that $|\sum A-\sum B|\le1$. Then choosing these two sets will also cost computational time.
Feb
7
revised How to generate two groups of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
added 262 characters in body
Feb
7
awarded Editor
Feb
7
comment Calculate redox potential and free energies based on structure of chemical molecules?
@Greg thanks for you suggestions. I edited the question. I am not sure if it is clearer now.
Feb
7
revised Calculate redox potential and free energies based on structure of chemical molecules?
added 337 characters in body
Feb
7
comment How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
@JasonB Sorry for late post, I will try to implement your approach in my code to check if it is OK and fast enough. Then I will report the result. Thanks and Happy Chinese New Year.
Feb
6
awarded Editor
Feb
6
comment How to generate two groups of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
@RichardHardy the $s$ is just a sum calculated by sampled $4$ random numbers, it can be any value in $[0,1]$
Feb
6
revised How to generate two groups of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
added 6 characters in body
Feb
6
asked Calculate redox potential and free energies based on structure of chemical molecules?
Feb
6
awarded Student
Feb
6
comment How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
@Szabolcs I never said those random variables are independent, I just need them to be uniformly distributed in fixed range, in this case it is $U(0,1)$.
Feb
6
asked How to generate two groups of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
Feb
6
comment How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
@Szabolcs I updated my question to make things clearer. Is the question clearer now? Many thanks for your input.
Feb
6
revised How to generate two group of $n$ random numbers in $U(0,1)$ such that sum of these two groups equal?
added 469 characters in body
Feb
5
awarded Critic
1 2 3 4 5