[LON-CAPA-users] List::Util

Stefan Bisitz st.bisitz at ostfalia.de
Mon Jul 1 08:53:13 EDT 2013


Hi,

Mathematicians told me a long time ago to use a high range and only odd 
numbers to get best permutation results. Others might have more details.

If you are unsure about a good randomization, you might try "Calculate 
answers for [n] versions." on the problem testing screen - if the used 
response type is supported.

Stefan Bisitz


Am 22.06.2013 10:14 schrieb Peter Dencker:
> Hi,
>
> is there any reason for the step size 2 in
>
> &random(1111111,9999999,2)
>
> and is 1111111 .. 9999999 the maximal range
> of values for the first argument of
>
>    &random_permutation($seed, 1, 23, 4, 5) ?
>
> - Peter
>
>
> Am 21.06.2013 16:14, schrieb Stefan Bisitz:
>> >Hi,
>> >
>> >You need to create the seed on your own, e.g.
>> >$seed = &random(1111111,9999999,2);
>> >
>> >This also brings the advantage to be able to use the seed for same
>> >permutations on different arrays.
>> >
>> >Stefan Bisitz
>> >
>> >
>> >Am 21.06.2013 16:09 schrieb Seema Ali:
>>> >>Sorry, but how do you get the seed for the &random_permutation()
>>> >>function?
>>> >>
>>> >>&random_permutation($seed, 1,23,4,5);
>>> >>________________________________________
>>> >>From:lon-capa-users-bounces at mail.lon-capa.org
>>> >>[lon-capa-users-bounces at mail.lon-capa.org] on behalf of Gerd
>>> >>Kortemeyer [korte at lite.msu.edu]
>>> >>Sent: 23 November 2012 07:02
>>> >>To: Discussion list for LON-CAPA users
>>> >>Subject: Re: [LON-CAPA-users] List::Util
>>> >>
>
> -- Dr. Peter Dencker wissenschaftl. Mitarbeiter UNIVERSITÄT ZU LÜBECK
> INSTITUT FÜR MATHEMATIK Ratzeburger Allee 160 23562 Lübeck Tel +49 451
> 500 4254 Fax +49 451 500 3373 dencker at math.uni-luebeck.de
> www.math.uni-luebeck.de _______________________________________________
> LON-CAPA-users mailing list LON-CAPA-users at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>


More information about the LON-CAPA-users mailing list