Skip to content
Snippets Groups Projects
Commit 90dde44f authored by Gabrielle Van De Vijver's avatar Gabrielle Van De Vijver Committed by Balthazar Wilson
Browse files

suppression du print

parent eed5bbca
No related branches found
No related tags found
No related merge requests found
package comsoc package comsoc
import ( import (
"fmt"
"math/rand" "math/rand"
"time" "time"
) )
func GenerateProfile(nVoters int, nAlts int) { func GenerateProfile(nVoters int, nAlts int)(profil Profile) {
// Initialisation du profil // Initialisation du profil
profil := make([][]Alternative, nVoters) profil = make([][]Alternative, nVoters)
for i := range profil { for i := range profil {
profil[i] = make([]Alternative, nAlts) profil[i] = make([]Alternative, nAlts)
} }
...@@ -32,8 +31,5 @@ func GenerateProfile(nVoters int, nAlts int) { ...@@ -32,8 +31,5 @@ func GenerateProfile(nVoters int, nAlts int) {
// Remplit la ligne avec la permutation // Remplit la ligne avec la permutation
copy(profil[i], permutation) copy(profil[i], permutation)
} }
return profil
for _, row := range profil {
fmt.Println(row)
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment