This tag is for questions dealing with random numbers, pseudorandom numbers, and computer entropy.

learn more… | top users | synonyms (1)

2
votes
0answers
52 views

Restricted randomization of a binary vector

Suppose I have a binary vector of sample size N with each of the two possible values (e.g., 0 and 1 occurring equally often). For example, if N=10, the binary vector is: 0 0 0 0 0 1 1 1 1 1 Suppose ...
1
vote
0answers
241 views

Performance of a Skip-List algorithm

Here is a simple code for a randomized skip-list: Coin_Side flip() { if ( random() % 2 == 0 ) return HEADS; else return TAILS; } Note: random() returns an integer that uses ...
0
votes
0answers
16 views

Randomly sampling chunks of a tree

I have a (non-binary) tree from which I want to sample various leaf and non-leaf nodes semi-randomly. The tree is generally less than 50 leaf nodes in all. The criteria for sampling is somewhat fuzzy ...
0
votes
0answers
94 views

How random are these numbers?

I am making a script for creating true random numbers. I use APIs from RANDOM.ORG and ANU QRNG. The method I have is I get a number from one of the sites and use it as a seed in the Mersenne Twister ...
0
votes
0answers
34 views

Pseudorandom in Android

I am building a security mechanism and I need a Pseudorandom functionality in my app. More particularly I need to convert a String to fix length. My strings are random already, they just to long so I ...