-
-
Save NicolaM94/85ae34f01e7de8cd00264276b385e137 to your computer and use it in GitHub Desktop.
Base environment for DCP24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"math/rand" | |
"time" | |
) | |
func main() { | |
// Creating the building | |
var building []int | |
for c := 0; c <= 100000; c++ { | |
building = append(building, c) | |
} | |
// Generating the random targetFloor | |
targetFloor := rand.New(rand.NewSource(time.Now().UnixNano())).Intn(len(building)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment