[BangPypers] What is the output of this python program?

Gora Mohanty gora at mimirtech.com
Fri Apr 5 11:29:38 CEST 2013


On 5 April 2013 14:09, Ruchir Shukla <ruchiryshukla at gmail.com> wrote:
> Hello !
>
> I did not get the Answer for how . can you explain the Answer ?
[...]

Seeding a pseudo-random number generator makes it
always generate a sequence specific to the seed. Someone
discovered the seeds to print the sequence for "hello" and
for "world".

Kind of cute, but IMHO teaches one nothing except maybe
to watch out for pseudo-random number generators where
the state,and the generated sequence can be gleaned from
a few examples. Unless one had already come across this
particular trick, there was no way to predict the output of the
program.

Regards,
Gora


More information about the BangPypers mailing list