Skip to content

Instantly share code, notes, and snippets.

@NicolaM94
Created November 12, 2023 01:44
Show Gist options
  • Save NicolaM94/85ae34f01e7de8cd00264276b385e137 to your computer and use it in GitHub Desktop.
Save NicolaM94/85ae34f01e7de8cd00264276b385e137 to your computer and use it in GitHub Desktop.
Base environment for DCP24
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