X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/fakerphp/faker/src/Faker/Provider
home
/
prisjneg
/
public_html
/
vendor
/
fakerphp
/
faker
/
src
/
Faker
/
Provider
/
📁
..
📄
Address.php
(3.49 KB)
📄
Barcode.php
(2.19 KB)
📄
Base.php
(22.2 KB)
📄
Biased.php
(1.79 KB)
📄
Color.php
(4.64 KB)
📄
Company.php
(901 B)
📄
DateTime.php
(12.1 KB)
📄
File.php
(25.1 KB)
📄
HtmlLorem.php
(9.98 KB)
📄
Image.php
(6 KB)
📄
Internet.php
(17.17 KB)
📄
Lorem.php
(7.7 KB)
📄
Medical.php
(648 B)
📄
Miscellaneous.php
(13.21 KB)
📄
Payment.php
(10.42 KB)
📄
Person.php
(3.23 KB)
📄
PhoneNumber.php
(6.45 KB)
📄
Text.php
(6.65 KB)
📄
UserAgent.php
(8.46 KB)
📄
Uuid.php
(1.78 KB)
📁
ar_EG
📁
ar_JO
📁
ar_SA
📁
at_AT
📁
bg_BG
📁
bn_BD
📁
cs_CZ
📁
da_DK
📁
de_AT
📁
de_CH
📁
de_DE
📁
el_CY
📁
el_GR
📁
en_AU
📁
en_CA
📁
en_GB
📁
en_HK
📁
en_IN
📁
en_NG
📁
en_NZ
📁
en_PH
📁
en_SG
📁
en_UG
📁
en_US
📁
en_ZA
📁
es_AR
📁
es_ES
📁
es_PE
📁
es_VE
📁
et_EE
📁
fa_IR
📁
fi_FI
📁
fr_BE
📁
fr_CA
📁
fr_CH
📁
fr_FR
📁
he_IL
📁
hr_HR
📁
hu_HU
📁
hy_AM
📁
id_ID
📁
is_IS
📁
it_CH
📁
it_IT
📁
ja_JP
📁
ka_GE
📁
kk_KZ
📁
ko_KR
📁
lt_LT
📁
lv_LV
📁
me_ME
📁
mn_MN
📁
ms_MY
📁
nb_NO
📁
ne_NP
📁
nl_BE
📁
nl_NL
📁
pl_PL
📁
pt_BR
📁
pt_PT
📁
ro_MD
📁
ro_RO
📁
ru_RU
📁
sk_SK
📁
sl_SI
📁
sr_Cyrl_RS
📁
sr_Latn_RS
📁
sr_RS
📁
sv_SE
📁
th_TH
📁
tr_TR
📁
uk_UA
📁
vi_VN
📁
zh_CN
📁
zh_TW
Editing: Biased.php
<?php namespace Faker\Provider; class Biased extends Base { /** * Returns a biased integer between $min and $max (both inclusive). * The distribution depends on $function. * * The algorithm creates two doubles, x ∈ [0, 1], y ∈ [0, 1) and checks whether the * return value of $function for x is greater than or equal to y. If this is * the case the number is accepted and x is mapped to the appropriate integer * between $min and $max. Otherwise two new doubles are created until the pair * is accepted. * * @param int $min Minimum value of the generated integers. * @param int $max Maximum value of the generated integers. * @param callable $function A function mapping x ∈ [0, 1] onto a double ∈ [0, 1] * * @return int An integer between $min and $max. */ public function biasedNumberBetween($min = 0, $max = 100, $function = 'sqrt') { do { $x = mt_rand() / mt_getrandmax(); $y = mt_rand() / (mt_getrandmax() + 1); } while (call_user_func($function, $x) < $y); return (int) floor($x * ($max - $min + 1) + $min); } /** * 'unbiased' creates an unbiased distribution by giving * each value the same value of one. * * @return int */ protected static function unbiased() { return 1; } /** * 'linearLow' favors lower numbers. The probability decreases * in a linear fashion. * * @return int */ protected static function linearLow($x) { return 1 - $x; } /** * 'linearHigh' favors higher numbers. The probability increases * in a linear fashion. * * @return int */ protected static function linearHigh($x) { return $x; } }
Upload File
Create Folder