Dear all,

For my class of about 30 students armed with JAndroid 901, I had planned to
use ?. to generate a random matrix which should be same for everybody. To
start with, I asked everybody to try

?. 100

Some got 46, others got 93. No other values. Next, someone noticed that if
they repeatedly type

? 100

then many are getting the SAME sequence of "random" numbers. Hence my
question:

1) Is there a way to produce predictable "random numbers" across different
machines (all running Jandroid 901_*, where the *'s may differ)?

2) Is there some way to get the initial seed from, say,  the system time in
millisecond (or something like that)?

Thanks a lot.

Arnab.

PS: BTW, my students are loving J!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to