[LON-CAPA-users] List::Util

Peter Dencker dencker at math.uni-luebeck.de
Sat Jun 22 04:14:00 EDT 2013


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


More information about the LON-CAPA-users mailing list