[LON-CAPA-users] List::Util

Seema Ali sali at vsb.bc.ca
Sat Jun 22 10:35:45 EDT 2013


Thank you!!!!
________________________________________
From: lon-capa-users-bounces at mail.lon-capa.org [lon-capa-users-bounces at mail.lon-capa.org] on behalf of Peter Dencker [dencker at math.uni-luebeck.de]
Sent: 22 June 2013 01:14
To: Discussion list for LON-CAPA users
Subject: Re: [LON-CAPA-users] List::Util

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