mirror of
https://gitlab.com/EternalWanderer/dice-roller.git
synced 2025-06-08 06:14:25 +02:00
Moved rng from main
This commit is contained in:
parent
b4e0356ef5
commit
82ca0401e6
3 changed files with 4 additions and 3 deletions
|
@ -4,6 +4,7 @@ import (
|
|||
"fmt"
|
||||
"math/rand"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gitlab.com/EternalWanderer/dice-roller/Colors"
|
||||
)
|
||||
|
@ -13,6 +14,7 @@ var (
|
|||
)
|
||||
|
||||
func Cast(surfaces, diceThrows, modifier int) {
|
||||
rand.Seed(time.Now().Unix())
|
||||
var (
|
||||
casts []int
|
||||
cast, total int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue