> > You could, for example, count
> all the "1" bits in the ram space. The ram has no default
> values on startup, perhaps there are some bits that
> initialize sometimes to 0 and sometimes to 1. Or, there can
> be some data left from the last run.
> 
> If power was not disconnected the ram values will be the
> same as they
> where when he last program ended (after a reset).

Yes, I said there can be some data left from the last run... And how many "1" 
bits are there then? Depends... The program that left this data had used a 
random generator... and this makes it random ;-)
 
> storing the value in eeprom is also not an option since
> some PIC's
> don't have eeprom.

Yes, not an option for a universal lib.

> also, the random numbers averaged (127.5 = best)
> old lib: 127.5126
> new lib: 127.5776
> 
> but of course, those results are random :) A visual image
> may still
> show differently since I do not check the order of the
> generated
> random bytes.

You could (to some degree) check the order of the bytes if you're not comparing 
bytes but bigger values. That will however need the help of a PC program... If 
you're comparing words of successive bytes, I'd bet not all 65536 combinations 
will occur, or at least not in uniform distribution.

Greets,
Kiste



-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to