Home
last modified time | relevance | path

Searched refs:random (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/plugin/findologicxmlexport/vendor/twig/twig/doc/functions/
H A Drandom.rst1 ``random``
5 The ``random`` function was added in Twig 1.5.
13 The ``random`` function returns a random value depending on the supplied
16 * a random item from a sequence;
17 * a random character from a string;
18 * a random integer between 0 and the integer parameter (inclusive).
19 * a random integer between the integer parameter (when negative) and 0 (inclusive).
24 {{ random(['apple', 'orange', 'citrus']) }} {# example output: orange #}
25 {{ random('ABC') }} {# example output: C #}
27 {{ random(5) }} {# example output: 3 #}
[all …]
H A Dindex.rst17 random
/plugin/diagramsnet/lib/plugins/
H A Drandom.js26 var jitter = 1 + 0.3 * (Math.random() - 0.5);
78 var jitter = 1 + 0.3 * (Math.random() - 0.5);
104 var k = Math.floor(Math.random() * numberA);
119 var k = Math.floor(Math.random() * numberB);
179 var jitter = 1 + 0.3 * (Math.random() - 0.5);
252 var x = Math.floor(Math.random() * 200);
253 var y = Math.floor(Math.random() * 50);
270 var x = Math.floor(Math.random() * 200);
271 var y = Math.floor(Math.random() * 50);
401 var jitter = 1 + 0.3 * (Math.random() - 0.5);
[all …]
H A Dpage.js23 var jitter = 1 + 0.3 * (Math.random() - 0.5);
33 var passes = Math.floor(Math.random() * number) + 1;
38 var k = Math.floor(Math.random() * number);
39 var l = Math.floor(Math.random() * number);
80 var jitter = 1 + 0.3 * (Math.random() - 0.5);
88 var n = Math.floor(Math.random() * 4); // how many to insert?
92 var k = Math.floor(Math.random() * 4000);
105 var k = Math.floor(Math.random() * number); // which one to delete?
113 var passes = Math.floor(Math.random() * number) + 1;
118 var k = Math.floor(Math.random() * number);
[all …]
H A Dupdate.js217 if (Math.random() > 0.5 && state != null && state.length > 50)
222 Math.round(Math.random() * 100) + '" placeholders="1">');
224 Math.round(Math.random() * 5) + ';');
232 Math.round(Math.random() * 100) + '" placeholders="1">');
250 if (Math.random() > 0.5)
255 Math.round(Math.random() * 100) + '" placeholders="1">');
264 if (Math.random() > 0.5)
/plugin/davcal/vendor/sabre/dav/tests/Sabre/CalDAV/Backend/
H A DAbstractPDOTest.php179 $backend->createCalendarObject($returnedId, 'random-id', $object);
252 $backend->createCalendarObject($returnedId, 'random-id', $object);
266 $backend->createCalendarObject($returnedId, 'random-id', $object);
290 $backend->createCalendarObject($returnedId, 'random-id', $object);
411 $data = $backend->getCalendarObjects($returnedId,'random-id');
417 $this->assertEquals('random-id', $data['uri']);
437 'somerandomid/random-id',
456 $data = $backend->getCalendarObject($returnedId,'random-id');
460 $this->assertEquals('random-id', $data['uri']);
475 $backend->deleteCalendarObject($returnedId, 'random-id');
[all …]
/plugin/davcal/vendor/sabre/dav/bin/
H A Dmigrateto30.php89 $random = mt_rand(1000,9999); variable
90 echo "Renaming propertystorage -> propertystorage_old$random and creating new table.\n";
95 $pdo->exec('RENAME TABLE propertystorage TO propertystorage_old' . $random);
105 …$pdo->exec('CREATE UNIQUE INDEX path_property_' . $random . ' ON propertystorage (path(600), name…
108 $pdo->exec('ALTER TABLE propertystorage RENAME TO propertystorage_old' . $random);
118 … $pdo->exec('CREATE UNIQUE INDEX path_property_' . $random . ' ON propertystorage (path, name);');
H A Dmigrateto20.php360 $random = mt_rand(1000,9999); variable
362 echo "The old table will be renamed to cards_old$random, just in case.\n";
368 $pdo->exec("RENAME TABLE cards TO cards_old$random");
371 $pdo->exec("ALTER TABLE cards RENAME TO cards_old$random");
/plugin/authwordpress/
H A Dclass-phpass.php231 $random = '';
234 $random = $this->get_random_bytes(16);
236 crypt($password, $this->gensalt_blowfish($random));
242 if (strlen($random) < 3)
243 $random = $this->get_random_bytes(3);
245 crypt($password, $this->gensalt_extended($random));
250 if (strlen($random) < 6)
251 $random = $this->get_random_bytes(6);
254 $this->gensalt_private($random));
/plugin/pgn4web/pgn4web/
H A Dparsing-tests.js40 if (Math.random() < pg) {
41 gg = Math.floor(numberOfGames * Math.random());
45 if (Math.random() < pv) {
46 vv = Math.floor(numberOfVars * Math.random());
48 var hh = StartPlyVar[vv] + Math.floor((PlyNumberVar[vv] + 1) * Math.random());
/plugin/statistics/
H A Dscript.js16 uid = now.getTime() + '-' + Math.floor(Math.random() * 32000);
107 ses = (Math.random().toString(16) + "000000000").substr(2, 8) +
108 (Math.random().toString(16) + "000000000").substr(2, 8) +
109 (Math.random().toString(16) + "000000000").substr(2, 8) +
110 (Math.random().toString(16) + "000000000").substr(2, 8);
/plugin/tipoftheday/
H A DREADME.md4 Display Tip of the Day - which is a random section of another page.
12 Display random page in namespace
/plugin/combo/vendor/hidehalo/nanoid-php/src/
H A DCore.php10 public function random(GeneratorInterface $generator, $size, $alphabet = CoreInterface::SAFE_SYMBOLS) function in Hidehalo\\Nanoid\\Core
17 $bytes = $generator->random($step);
H A DClient.php22 * @var CoreInterface $core Core dynamic random
57 return $this->core->random($this->generator, $size, $this->alphbet);
66 * Otherwise use the build-in default random bytes generator
79 return $this->core->random($generator, $size, $alphabet);
H A DGeneratorInterface.php7 * Return random bytes array
12 public function random($size); function
H A DGenerator.php9 public function random($size) function in Hidehalo\\Nanoid\\Generator
H A DCoreInterface.php10 * Secure random string generator with custom alphabet.
18 public function random(GeneratorInterface $generator, $size, $alphabet = CoreInterface::SAFE_SYMBOLS); function
/plugin/reliwa/
H A Dsyntax.php132 if (strpos('date_desc;date_asc;random',$val) === 0) {
133 $val = 'random';
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/
H A DEngine.php739 public static function random($size) function in phpseclib3\\Math\\BigInteger\\Engines\\Engine
842 $random = new static(Random::string($size), 256);
847 while ($random->compare($max_multiple) >= 0) {
848 $random = $random->subtract($max_multiple);
850 $random = $random->bitwise_leftShift(8);
851 $random = $random->add(new static(Random::string(1), 256));
856 list(, $random) = $random->divide($max);
858 return $random->add($min);
/plugin/randomquote/
H A DREADME.md3 This is a very (!) simple syntax plugin for DokuWiki that allows you to show random quotes on your …
8 After installing the plugin, all instances of `<randomquote>` will be replaced with a random quote.
/plugin/passwordgenerator/
H A Dscript.js42 var rnd = Math.floor(Math.random() * src.length),
46 rnd = Math.floor(Math.random() * charBuild.length);
/plugin/jquotes/
H A Dplugin.info.txt6 desc Displays random quotations from JSON file
/plugin/tuxquote/
H A Dplugin.info.txt6 desc Show a random image and quote
/plugin/rndtxt/
H A Dplugin.info.txt6 desc Output a random text choice
/plugin/bootswrapper/
H A Dscript.js244 accordion_id = Math.random().toString(36).substr(2, 9),
250 panel_id = accordion_id + '_' + Math.random().toString(36).substr(2, 9);
270 carousel_id = Math.random().toString(36).substr(2, 9),

12345678910>>...12