- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 82 for rand (0.4 sec)
-
api/go1.22.txt
pkg math/rand/v2, method (*Rand) Int32() int32 #61716 pkg math/rand/v2, method (*Rand) Int32N(int32) int32 #61716 pkg math/rand/v2, method (*Rand) Int64() int64 #61716 pkg math/rand/v2, method (*Rand) Int64N(int64) int64 #61716 pkg math/rand/v2, method (*Rand) IntN(int) int #61716 pkg math/rand/v2, method (*Rand) NormFloat64() float64 #61716 pkg math/rand/v2, method (*Rand) Perm(int) []int #61716
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 20:54:27 UTC 2024 - 7.7K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/transform_test.go
var sem = make(chan bool, parallel) for n := attempts; n > 0; n-- { sem <- true go func() { defer func() { <-sem }() time.Sleep(time.Duration(rand.Intn(100)) * time.Microsecond) chunkWords := roundDownToPowerOf2(rand.Intn(maxChunkWords) + 1) offset := rand.Intn(chunkWords) err := lockedfile.Transform(path, func(data []byte) (chunk []byte, err error) { chunk = buf[offset*8 : (offset+chunkWords)*8]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 22:37:50 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/go/internal/work/exec_test.go
} t.Parallel() nRunes := sys.ExecArgLengthLimit + 100 rBuffer := make([]rune, nRunes) buf := bytes.NewBuffer([]byte(string(rBuffer))) seed := time.Now().UnixNano() t.Logf("rand seed: %v", seed) rng := rand.New(rand.NewSource(seed)) for i := 0; i < 50; i++ { // Generate a random string of runes. buf.Reset() for buf.Len() < sys.ExecArgLengthLimit+1 { var r rune for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 02 13:15:42 UTC 2021 - 1.8K bytes - Viewed (0) -
src/cmd/go/internal/str/str_test.go
) var foldDupTests = []struct { list []string f1, f2 string }{ {StringList("math/rand", "math/big"), "", ""}, {StringList("math", "strings"), "", ""}, {StringList("strings"), "", ""}, {StringList("strings", "strings"), "strings", "strings"}, {StringList("Rand", "rand", "math", "math/rand", "math/Rand"), "Rand", "rand"}, } func TestFoldDup(t *testing.T) { for _, tt := range foldDupTests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 25 16:49:13 UTC 2023 - 5.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/bench_test.go
// license that can be found in the LICENSE file. package ssa import ( "math/rand" "testing" ) var d int //go:noinline func fn(a, b int) bool { c := false if a > 0 { if b < 0 { d = d + 1 } c = true } return c } func BenchmarkPhioptPass(b *testing.B) { for i := 0; i < b.N; i++ { a := rand.Perm(i/10 + 10) for i := 1; i < len(a)/2; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 21 02:36:06 UTC 2023 - 835 bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/math/rand/v2/61716.md
The [Uint] function and [Rand.Uint] method have been added.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:03:11 UTC 2024 - 105 bytes - Viewed (0) -
tests/tests_test.go
} func RunMigrations() { var err error allModels := []interface{}{&User{}, &Account{}, &Pet{}, &Company{}, &Toy{}, &Language{}, &Coupon{}, &CouponProduct{}, &Order{}, &Parent{}, &Child{}, &Tools{}} rand.Seed(time.Now().UnixNano()) rand.Shuffle(len(allModels), func(i, j int) { allModels[i], allModels[j] = allModels[j], allModels[i] }) DB.Migrator().DropTable("user_friends", "user_speaks")
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Dec 15 08:36:08 UTC 2023 - 3.3K bytes - Viewed (0) -
api/go1.23.txt
pkg maps, func Values[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0) iter.Seq[$2] #61900 pkg math/rand/v2, func Uint() uint #61716 pkg math/rand/v2, method (*ChaCha8) Read([]uint8) (int, error) #67059 pkg math/rand/v2, method (*Rand) Uint() uint #61716 pkg net, method (*DNSError) Unwrap() error #63116 pkg net, method (*TCPConn) SetKeepAliveConfig(KeepAliveConfig) error #62254
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 20:48:49 UTC 2024 - 8.4K bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio_flaky.go
//go:build windows || darwin package robustio import ( "errors" "math/rand" "os" "syscall" "time" ) const arbitraryTimeout = 2000 * time.Millisecond // retry retries ephemeral errors from f up to an arbitrary timeout // to work around filesystem flakiness on Windows and Darwin. func retry(f func() (err error, mayRetry bool)) error { var ( bestErr error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 2.5K bytes - Viewed (0) -
src/cmd/go/internal/par/work.go
v.err = ErrCacheEntryNotFound } return v.v, v.err } // Cache runs an action once per key and caches the result. type Cache[K comparable, V any] struct { m sync.Map } type cacheEntry[V any] struct { done atomic.Bool mu sync.Mutex result V } // Do calls the function f if and only if Do is being called for the first time with this key.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 15:54:54 UTC 2024 - 4.3K bytes - Viewed (0)