Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

For each iteration, I want to create a new sequence of numbers. In my machine, I have a CRC (8,16,32) algorithm already implemented. Is is possible to use the CRC output to generate a pseudo-random sequence?

Note: I don't need that the sequence of numbers has extremely good randomness.

For example, I was thinking something like this:

seed = 0;
seq_length = 10;
seq_number = 1000;

for iter=1 to seq_number 
  seq{iter,1} = CRC32(seed,iter)
  for iter_seq=2 to seq_length 
    seq{iter,iter_seq} = CRC32(seq{iter,iter_seq-1},iter)

But, maybe there are better ways to face the problem...

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.