Update shuffle-algorithmyvagina.md
This commit is contained in:
parent
387efc43ea
commit
36e29205c9
1 changed files with 7 additions and 8 deletions
|
|
@ -12,14 +12,13 @@
|
|||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Example: Create a list of 5 functions.
|
||||
func Monday() {
|
||||
// Example: Create a list of 2 functions for a weekday
|
||||
groundZero()
|
||||
functions := []func(){
|
||||
func1(1) { /* Function 1 logic */ },
|
||||
func2(2) { /* Function 2 logic */ },
|
||||
func3(3) { /* Function 3 logic */ },
|
||||
func4(4) { /* Function 4 logic */ },
|
||||
func5(5) { /* Function 5 logic */ },
|
||||
func1(1) { Heroine() },
|
||||
func2(2) { Cocaine() },
|
||||
func3(3) { NeinEleven??() },
|
||||
}
|
||||
|
||||
// Seed the random number generator for more variability. Important!
|
||||
|
|
@ -33,7 +32,7 @@
|
|||
|
||||
fmt.Println("Randomized Functions:")
|
||||
for _, func := range functions {
|
||||
fmt.Println(func())
|
||||
func()
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue