Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/tst/testinstall/   (GAP Algebra Version 4.15.1©)  Datei vom 18.9.2025 mit Größe 8 kB image not shown  

Quelle  randlist.tst   Sprache: unbekannt

 
Spracherkennung für: .tst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

gap> START_TEST("randlist.tst");
#@if 8*GAPInfo.BytesPerVariable = 32
gap> l := [1..2^(8*GAPInfo.BytesPerVariable-4)-1];
1 .. 268435455 ]
gap> Reset(GlobalMersenneTwister, 1);;
gap> List([1..10], i-> Random(12^70));
3894200780964357861161135477438879460122740425191437180319830675
  108390023110624388732060087237409464938769239438917363375403157
  8606395634724175948211064153947161477828981140455377727366448871
  198677943275448576238 ]
gap> List([1..10], i-> Random(l));
1315543531314832156087317468837314278653814074564525528157
  4562501621499473784644 ]
gap> List([1..10], i-> Random(1,10^(3*i)));
7214679722238206187185663184734387696875236101821667962893342
  669052909362560486368769723171201061857635320
  874658974599856967310222061397063360144420204491778152435 ]
gap> Reset(GlobalRandomSource, 1);;
gap> List([1..10], i-> Random(GlobalRandomSource, 12^70));
11284316295049221057811101744982711025966526975266616221323178376
  6782857714562350933593373689038344091625001067481644129172537859
  66671259143654620847047177388931965880887027293053954741592585
  894173925476383505759 ]
gap> List([1..10], i-> Random(GlobalRandomSource, l));
40228334111587641262452744448549233984568220658157192903376
  23131487366408590258714463 ]
gap> List([1..10], i-> Random(GlobalRandomSource, l)) mod 2^28;
1849789401596205971231297486802674323347129423259144924005304
  5708683167299138197744113 ]
gap> List([1..10], i-> Random(GlobalRandomSource, 1,10^(3*i)));
602615764985971579527993069062970982477709403915182928712255106
  5222468417123770002263091858766485771208964391269615753496331510430301
  929557928485066381724613674190 ]
gap> rs := RandomSource(IsMersenneTwister, 1);
<RandomSource in IsMersenneTwister>
gap> List([1..10], i-> Random(rs, 12^70));
3894200780964357861161135477438879460122740425191437180319830675
  108390023110624388732060087237409464938769239438917363375403157
  8606395634724175948211064153947161477828981140455377727366448871
  198677943275448576238 ]
gap> List([1..10], i-> Random(rs, l));
1315543531314832156087317468837314278653814074564525528157
  4562501621499473784644 ]
gap> List([1..10], i-> Random(rs, 1,10^(3*i)));
7214679722238206187185663184734387696875236101821667962893342
  669052909362560486368769723171201061857635320
  874658974599856967310222061397063360144420204491778152435 ]
gap> rs := RandomSource(IsGAPRandomSource, 1);
<RandomSource in IsGAPRandomSource>
gap> List([1..10], i-> Random(rs, 12^70));
11284316295049221057811101744982711025966526975266616221323178376
  6782857714562350933593373689038344091625001067481644129172537859
  66671259143654620847047177388931965880887027293053954741592585
  894173925476383505759 ]
gap> List([1..10], i-> Random(rs, l));
40228334111587641262452744448549233984568220658157192903376
  23131487366408590258714463 ]
gap> List([1..10], i-> Random(rs, l)) mod 2^28;
1849789401596205971231297486802674323347129423259144924005304
  5708683167299138197744113 ]
gap> List([1..10], i-> Random(rs, 1,10^(3*i)));
602615764985971579527993069062970982477709403915182928712255106
  5222468417123770002263091858766485771208964391269615753496331510430301
  929557928485066381724613674190 ]
#@else
gap> l4 := [1..2^28-1];
1 .. 268435455 ]
gap> l8 := [1..2^60-1];
1 .. 1152921504606846975 ]
gap> bits := Concatenation([27..33],[59..65],[95..97],[127..129]);;

#
gap> Reset(GlobalMersenneTwister, 1);;
gap> List(bits,    i-> Random(12^i));
188290541642516244746142192334542452133481873257085298
  1185099587100418839541388781789361540116712441951632504588564735
  189184695355781400173801605381707667534588549330382399543
  2021239977815855472325871717046293081269812882956
  7495915426264639864674346667152390258479956963774859779424
  46150081993482768205533540973984006122
  264304607032107166297612477092494666822
  369126435272860177990538082224405421325 ]
gap> List([1..10], i-> Random(110^(3*i)));
796488110337484392594009012741658311342730164718543835420643146
  19253158888182798425293448310516637261223301897306488169252919346512382,
  373729190135314870329223545530 ]
gap> List([1..10], i-> Random(l4));
143468941483730729645662124739889124982356178658837173118677
  117495931138389463242860897 ]
gap> List([1..10], i-> Random(l8));
347927869732747975519413397450930047898055001130687869
  1637637769913920679690523382405573731038155658715349861
  49320552743807076228433991423533450173244587732492565
  990629399330982901 ]

#
gap> Reset(GlobalRandomSource, 1);;
gap> List(bits,    i-> Random(GlobalRandomSource, 12^i));
128287824933399964975142981263330508880083483272686668
  32847652392463845695714942068991215255339703342058504735678170118
  1295847095154625366183195148366716548112413749580545794189
  2111230099446717946116479214171808335931562195799
  4707717730595244665171074986293051612446083908105560589039
  17595829529914834395994704246711425132
  189028623575818650885511742806844572497
  442802932679156364466206827982691923819 ]
gap> List([1..10], i-> Random(GlobalRandomSource, 110^(3*i)));
29254074768367363782766307890207951565811836269515013492647614
  16813301970350334705846702024622849426851426498676940076039327334874754,
  960893403060023160487783291143 ]
gap> List([1..10], i-> Random(GlobalRandomSource, l4));
1909625481796429118072695018519908521355676610901818755718740
  21642308615113700048013178 ]
gap> List([1..10], i-> Random(GlobalRandomSource, l8));
1128201256618036672890212987711716841228981350846997556
  962603471308182302697651637792723842464389630980588785
  463611844822187319195151234274091472339385016873630147
  670406272576191605 ]

#
gap> rs := RandomSource(IsMersenneTwister, 1);
<RandomSource in IsMersenneTwister>
gap> List(bits,    i-> Random(rs, 12^i));
188290541642516244746142192334542452133481873257085298
  1185099587100418839541388781789361540116712441951632504588564735
  189184695355781400173801605381707667534588549330382399543
  2021239977815855472325871717046293081269812882956
  7495915426264639864674346667152390258479956963774859779424
  46150081993482768205533540973984006122
  264304607032107166297612477092494666822
  369126435272860177990538082224405421325 ]
gap> List([1..10], i-> Random(rs, 110^(3*i)));
796488110337484392594009012741658311342730164718543835420643146
  19253158888182798425293448310516637261223301897306488169252919346512382,
  373729190135314870329223545530 ]
gap> List([1..10], i-> Random(rs, l4));
143468941483730729645662124739889124982356178658837173118677
  117495931138389463242860897 ]
gap> List([1..10], i-> Random(rs, l8));
347927869732747975519413397450930047898055001130687869
  1637637769913920679690523382405573731038155658715349861
  49320552743807076228433991423533450173244587732492565
  990629399330982901 ]

#
gap> rs := RandomSource(IsGAPRandomSource, 1);
<RandomSource in IsGAPRandomSource>
gap> List(bits,    i-> Random(rs, 12^i));
128287824933399964975142981263330508880083483272686668
  32847652392463845695714942068991215255339703342058504735678170118
  1295847095154625366183195148366716548112413749580545794189
  2111230099446717946116479214171808335931562195799
  4707717730595244665171074986293051612446083908105560589039
  17595829529914834395994704246711425132
  189028623575818650885511742806844572497
  442802932679156364466206827982691923819 ]
gap> List([1..10], i-> Random(rs, 110^(3*i)));
29254074768367363782766307890207951565811836269515013492647614
  16813301970350334705846702024622849426851426498676940076039327334874754,
  960893403060023160487783291143 ]
gap> List([1..10], i-> Random(rs, l4));
1909625481796429118072695018519908521355676610901818755718740
  21642308615113700048013178 ]
gap> List([1..10], i-> Random(rs, l8));
1128201256618036672890212987711716841228981350846997556
  962603471308182302697651637792723842464389630980588785
  463611844822187319195151234274091472339385016873630147
  670406272576191605 ]

#@fi
gap> STOP_TEST("randlist.tst");

[Dauer der Verarbeitung: 0.12 Sekunden, vorverarbeitet 2026-06-11]