Random number challenge

Kirk Cerny kirksemail at gmail.com
Thu Jun 12 08:55:46 MDT 2008


I think the javascript version is easier than the python one, and its
almost guaranteed that every computer has a javascript interpreter
aka: Web Browser, I think the javascript version would have the
highest chance of being able to run on the most machines without any
installations.

On Thu, Jun 12, 2008 at 8:44 AM, Barry Roberts <blr at robertsr.us> wrote:
>
> 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.
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>



More information about the PLUG mailing list