diff --git a/comsoc/GenerateProfile.go b/comsoc/GenerateProfile.go
index 14f0871eeba1b49e6a0f62354cad6e707f324873..728df7f069c9ee2d9881413e9cf5162328d1e7ac 100644
--- a/comsoc/GenerateProfile.go
+++ b/comsoc/GenerateProfile.go
@@ -1,14 +1,13 @@
 package comsoc
 
 import (
-	"fmt"
 	"math/rand"
 	"time"
 )
 
-func GenerateProfile(nVoters int, nAlts int) {
+func GenerateProfile(nVoters int, nAlts int)(profil Profile) {
 	// Initialisation du profil
-	profil := make([][]Alternative, nVoters)
+	profil = make([][]Alternative, nVoters)
 	for i := range profil {
 		profil[i] = make([]Alternative, nAlts)
 	}
@@ -32,8 +31,5 @@ func GenerateProfile(nVoters int, nAlts int) {
 		// Remplit la ligne avec la permutation
 		copy(profil[i], permutation)
 	}
-	
-	for _, row := range profil {
-		fmt.Println(row)
-	}
+	return profil
 }
\ No newline at end of file