Searched refs:random* (Results 1 - 25 of 805) sorted by relevance

1234567891011>>

/macosx-10.9.5/AppleUSBIrDA-145.2.4/IrDA/
H A DIrGlue.cpp524 lsapId = (UByte)random() & 0x1F; // Random starting point between 0 and 31
/macosx-10.9.5/AppleUSBIrDA-145.2.4/IrDA/Stack/
H A DIrLAP.cpp486 // Get a random device address for my address (range is 1 - FFFFFFFE)
487 fMyDevAddr = ( random() % 0xFFFFFFFE + 1 );
798 // Get a random connection address for the conn address to be used while in NRM mode
801 fConnAddr = (UByte)random() % 0x7C + 2; // 0-7B plus 2 => 2-7D
1254 // Delay random time before resending SNRM
1257 StartTimer((25 + (random() % 50)) * kMilliseconds, kIrBackoffTimerExpiredEvent);
1423 fDiscoverSlot = random() % fDiscoverMaxSlots;
3356 fReplacementDevAddr = ( UInt32 ) ( random() % 0xFFFFFFFE + 1 );
/macosx-10.9.5/BerkeleyDB-21/db/examples_c/
H A Dbench_001.c137 j = random() % num;
H A Dex_tpcb.c46 u_int32_t random_id __P((FTYPE, int, int, int));
47 u_int32_t random_int __P((u_int32_t, u_int32_t));
461 hrec.aid = random_id(ACCOUNT, accounts, branches, tellers);
462 hrec.bid = random_id(BRANCH, accounts, branches, tellers);
463 hrec.tid = random_id(TELLER, accounts, branches, tellers);
473 random_int(lo, hi) function
490 random_id(type, accounts, branches, tellers) function
511 return (random_int(min, max));
620 account = random_id(ACCOUNT, accounts, branches, tellers);
621 branch = random_id(BRANC
[all...]
/macosx-10.9.5/BerkeleyDB-21/db/examples_cxx/
H A DTpcbExample.cpp26 u_int32_t random_id(FTYPE, u_int32_t, u_int32_t, u_int32_t);
27 u_int32_t random_int(u_int32_t, u_int32_t);
417 hrec.aid = random_id(ACCOUNT, accounts, branches, tellers);
418 hrec.bid = random_id(BRANCH, accounts, branches, tellers);
419 hrec.tid = random_id(TELLER, accounts, branches, tellers);
432 random_int(u_int32_t lo, u_int32_t hi) function
445 random_id(FTYPE type, u_int32_t accounts, u_int32_t branches, u_int32_t tellers) function
464 return (random_int(min, max));
553 account = random_id(ACCOUNT, accounts, branches, tellers);
554 branch = random_id(BRANC
[all...]
/macosx-10.9.5/BerkeleyDB-21/db/examples_cxx/wce_tpcb/
H A DTpcbExample.cpp255 hrec.aid = randomId(ACCOUNT, accounts, branches, tellers);
256 hrec.bid = randomId(BRANCH, accounts, branches, tellers);
257 hrec.tid = randomId(TELLER, accounts, branches, tellers);
385 account = randomId(ACCOUNT, accounts, branches, tellers);
386 branch = randomId(BRANCH, accounts, branches, tellers);
387 teller = randomId(TELLER, accounts, branches, tellers);
475 TpcbExample::randomInt(u_int32_t lo, u_int32_t hi) function in class:TpcbExample
488 TpcbExample::randomId(FTYPE type, u_int32_t accounts, function in class:TpcbExample
508 return (randomInt(min, max));
H A DTpcbExample.h56 u_int32_t randomId(FTYPE, u_int32_t, u_int32_t, u_int32_t);
57 u_int32_t randomInt(u_int32_t, u_int32_t);
/macosx-10.9.5/BerkeleyDB-21/db/examples_java/src/db/
H A DTpcbExample.java67 // used by random_id()
287 hrec.set_aid(random_id(ACCOUNT));
288 hrec.set_bid(random_id(BRANCH));
289 hrec.set_tid(random_id(TELLER));
299 public static int random_int(int lo, int hi) { method in class:TpcbExample
309 public int random_id(int type) { method in class:TpcbExample
327 return (random_int(min, max));
459 account = TpcbExample.this.random_id(TpcbExample.ACCOUNT);
460 branch = TpcbExample.this.random_id(TpcbExample.BRANCH);
461 teller = TpcbExample.this.random_id(TpcbExampl
[all...]
/macosx-10.9.5/BerkeleyDB-21/db/perl/DB_File/
H A DDB_File.pm901 retrieved is in an apparently random order.
1130 that the values will be returned in an apparently random order.
2154 allocated, the unused portions will contain random junk. In the case
2155 where a Perl script gets written to the database, the random junk will
/macosx-10.9.5/BerkeleyDB-21/db/test/
H A Ddbscript.tcl103 # On each iteration we're going to generate random keys and
130 set k [random_data $key_avg 1 a_keys $record_based]
131 set data [random_data $data_avg 0 0]
144 set k [random_key]
145 set data [random_data $data_avg 0 0]
158 set dbcinfo [random_cursor $curslist]
160 if { [berkdb random_int 1 2] == 1 } {
162 set k [random_data $key_avg 1 a_keys \
164 set data [random_data $data_avg 0 0]
173 set data [random_data
[all...]
H A Djoin.tcl44 # run with two different random mixes.
61 [conv $m [berkdb random_int 1 2]]"
230 proc random_opts { } { procedure
231 set j [berkdb random_int 0 1]
247 # with " -dup" or " -dup -dupsort" at random.
250 set lopt [lreplace $lopt $i $i [random_opts]]
276 # random, or near random, order. Do this by generating
278 # at random.
284 # randomize th
[all...]
H A Dlockscript.tcl35 # Initialize random number generator
50 set nlocks [berkdb random_int 1 $degree]
58 set obj [berkdb random_int $lastobj $numobjs]
60 set x [berkdb random_int 1 100 ]
90 after [berkdb random_int 10 [expr $sleepint * 100]]
H A Dlog001.tcl79 set rec $rec:[random_data 237 0 0]
118 puts "\tLog001.e: Retrieving log records randomly by LSN"
121 set recno [berkdb random_int 0 $m ]
H A Dlog002.tcl47 set rec [random_data 120 0 0]
H A Dlog003.tcl95 # Put 10 random records
97 set r [random_data 450 0 0]
106 # Put 10 more random records
108 set r [random_data 450 0 0]
H A Dmdbscript.tcl134 return [berkdb random_int 1 [expr $nkeys - $procs]]
136 return [berkdb random_int 1 $nkeys]
138 return [berkdb random_int 0 [expr $nkeys - 1]]
142 # On each iteration we're going to randomly pick a key.
146 # 4. Get it, read forward some random number of keys.
147 # 5. Get it, read forward some random number of keys and do a put (replace).
148 # 6. Get it, read forward some random number of keys and do a del. And then
159 set op [berkdb random_int 0 5]
266 set nloop [berkdb random_int 0 10]
267 if { [berkdb random_int
[all...]
H A Dmemp001.tcl31 "Memp001: { $flags } random update $iter iterations on $nfiles files."
73 # Now, loop, picking files at random
77 set mpool $mpools([berkdb random_int 1 $nfiles])
140 set pno [berkdb random_int 0 $max]
H A Dmemp003.tcl78 set ndx [berkdb random_int 0 [expr $nentries - 1]]
H A Dmpoolscript.tcl134 tclsleep [berkdb random_int 1 $sleepint]
H A Dparallel.tcl36 puts -nonewline "randomizing..."
48 set j [berkdb random_int $i [expr $count - 1]]
H A Drecd011.tcl53 set str [random_data 4096 0 NOTHING]
H A Drecd012.tcl33 # the random number generator to randomize our operations.
70 # Initialize random number generator based on $iter.
98 if { [berkdb random_int 0 1] || [is_queue $method] } {
120 # We'll repeat the inner + a random number up to $niniter times,
121 # and the outer + a random number up to $noutiter times.
127 set out [berkdb random_int 1 $noutiter]
149 set nrecs [berkdb random_int 0 3]
214 # Initialize our random number generator, repeatably based on an arg.
253 # Inner loop. Do $in iterations of a random ope
[all...]
H A Drecd015.tcl113 # If we discarded, now do it again and randomly resolve some
130 # Abort/commit or discard them randomly until
136 set newop [berkdb random_int 1 3]
H A Drecd021.tcl274 set index [berkdb random_int 0 [expr [llength $methodlist] - 1]]
H A Drep005.tcl206 set windex [berkdb random_int 0 [expr [llength $cl_list] - 1]]
248 set close_index [berkdb random_int 0 $close_len]
265 set lsn_index [berkdb random_int 0 $lsn_len]
289 set rec_index [berkdb random_int 0 $rec_len]

Completed in 186 milliseconds

1234567891011>>