[LON-CAPA-admin] Another issue with random function
H. K. Ng
hkng at fsu.edu
Mon Apr 1 14:55:56 EDT 2019
The author directory shows an error message that Mark Lucas reported yesterday.
Usage: random_set_seed(@seed)
@seed[0,1] must be two integers in the range (1,1) to (2147483562,2147483398)
and usually comes from a call to random_get_seed() or
random_seed_from_phrase($phrase). at /usr/local/lib64/perl5/Safe/Hole.pm line 68.
This occurred while running:
$num=&random(1.,9.,.05);
$rand=&random(1.,9.,.05);
$freq=$num*1.e+06*3.e+08/2.;
$b=$rand*1.e+02/3.e+08;
On Mon, Apr 1, 2019 at 2:43 PM H. K. Ng <hkng at fsu.edu<mailto:hkng at fsu.edu>> wrote:
I have a problem (/res//fsu/capalibrary/71EMWavesI/prob02.problem) that I have use for a number years but now one of the students is experiencing a randomization issue - see attached screenshot. It seems that there is an issue with the random call. (I had the same issue with another problem about a week ago. That problem is /res/msu/physicslib/msuphysicslib/70_CircAC2_LRC_Power/msuprob01.problem.) I cannot find any error message in perl/logs that seems to correlate with this error. The only thing that seems link to the issue is in /var/log/httpd/error.log - there there are lots of entries that say
Use of uninitialized value $0 in concatenation (.) or string at /usr/lib64/perl5/Config.pm line 60.
Use of uninitialized value $^V in sprintf at /usr/lib64/perl5/Config.pm line 60.
However, since there is no date/time stamp for the messages, so they may not be due to the random function. So far this has occurred two times, one for a student and another for one of my TAs.
The system that I am using is Centos 7.
Anyone else having this problem and any idea how to fix this?
Regards,
-hk
_______________________________________________
LON-CAPA-admin mailing list
LON-CAPA-admin at mail.lon-capa.org<mailto:LON-CAPA-admin at mail.lon-capa.org>
https://urldefense.proofpoint.com/v2/url?u=http-3A__mail.lon-2Dcapa.org_mailman_listinfo_lon-2Dcapa-2Dadmin&d=DwICAg&c=HPMtquzZjKY31rtkyGRFnQ&r=wTSZ5EgyXvEFGuAc4iHTrg&m=L5tRmEu59XK6kBSKfLXWQZAyX5dDSMAakfGqts1ph6w&s=uix5xub4a5tCS3PoixwAg8jsg0dw-cO4hvIoeikqDD0&e=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-admin/attachments/20190401/0ca40088/attachment.html>
More information about the LON-CAPA-admin
mailing list