phone number, plus other changes

master
Charles Iliya Krempeaux 2021-11-21 06:12:56 -08:00
parent bf91198da0
commit d8ef8e226a
1 changed files with 57 additions and 1 deletions

View File

@ -9,11 +9,67 @@ func (arb T) phonenumber_canada() string {
var areacode string
{
var areacodes []string = []string{
// alberta
"403",
"780",
"587",
"825",
"368",
// british columnbia
"604",
"250",
"778",
"236",
"672",
// manitoba
"204",
"413",
// new brunswick
"506",
// newfoundland and labrador
"709",
// nova scotia and prince edward island
"782",
"902",
// ontario
"226",
"249",
"289",
"343",
"365",
"416",
"437",
"519",
"548",
"613",
"647",
"705",
"807",
"905",
// quebec
"367",
"418",
"581",
"438",
"450",
"514",
"613",
"581",
"819",
// saskatchewan
"306",
"639",
// yukon, northwest territories and nunavut
"867",
}
areacode = areacodes[arb.randomness.Intn(len(areacodes))]
@ -53,7 +109,7 @@ func (arb T) phonenumber_canada() string {
var result string
{
fmt.Sprintf(format, areacode, localpart1, localpart2)
result = fmt.Sprintf(format, areacode, localpart1, localpart2)
}
return result