Skip to content
Snippets Groups Projects
Commit dc06d7cf authored by Gabrielle Van De Vijver's avatar Gabrielle Van De Vijver
Browse files

suppression du print

parent 1c486076
No related branches found
No related tags found
1 merge request!1Gabrielle
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
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