Random number challenge

Barry Roberts blr at robertsr.us
Thu Jun 12 08:44:14 MDT 2008


Kirk Cerny wrote:
> Is there an easier way than this in Java?
>   
I'm a java programmer, but at a PLUG meeting I would just:

[blr at dalmuti ~]$ python
 >>> import random, os
 >>> random.seed(os.getpid())
 >>> random.randint(0,10)
2


Seems easier than any compiled language.   



More information about the PLUG mailing list