Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/wpe/dev/timings/conjugacyProblem/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 21.9.2024 mit Größe 600 B image not shown  

Quelle  genRandomElements.g   Sprache: unbekannt

 
# Global variables are defined outside of this file
# str           ID                      : identifier of this example
# int           nrRandomElements        : number of random elements
# rec(K, H)     groups                  : groups K and H
G := WreathProduct(groups.K, groups.H);;
fileOut := Concatenation("./out_randomElements/", ID, ".csv");;
PrintTo(fileOut, "");;
randomElements := EmptyPlist(nrRandomElements);;
for i in [1 .. nrRandomElements] do
    g := PseudoRandom(G);;
    h := PseudoRandom(G);;
    randomElements[i] := rec(g := g, h := h);;
od;;
PrintCSV(fileOut, randomElements);;

[ Dauer der Verarbeitung: 0.4 Sekunden  (vorverarbeitet)  ]