Skip to main content
7 events
when toggle format what by license comment
Dec 27, 2014 at 0:09 comment added Dr. belisarius @Sungmin No offense. I posted my answer after pondering what kind of distribution the OP could want. Not sure tough.
Dec 27, 2014 at 0:03 comment added Sungmin That is correct. In that sense, the problem is ill-defined. As I said earlier, I just wanted to warn the future readers that there might be a subtlety in this problem that was discussed in various other posts in stackoverflow. Did not intend to offend your answer.
Dec 26, 2014 at 23:57 comment added Dr. belisarius @Sungmin The OP here haven't used the word "uniform" ...
Dec 26, 2014 at 23:51 comment added Sungmin In the one of the answer of the post I linked above, there is an argument that this approach does not give a certain sense of "uniformly distributed-ness". I still feel the algorithm should be taken in a more rigorous way even though OP does not seem to have a clear definition of randomness. I just want to point out the subtlety of the given problem for the record.
Dec 26, 2014 at 22:55 history edited Dr. belisarius CC BY-SA 3.0
deleted 28 characters in body
Dec 26, 2014 at 22:51 comment added Chen Stats Yu Aha! I should have noticed that Normalize[,Total] can be used here as a trick in the other answer you gave me.
Dec 26, 2014 at 22:43 history answered Dr. belisarius CC BY-SA 3.0