| 1 |
# Arabic translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# زايد السعيدي <[email protected]>, 2026. |
| 5 |
|
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: manpages-l10n 4.30.2\n" |
| 9 |
"POT-Creation-Date: 2026-06-05 06:39+0200\n" |
| 10 |
"PO-Revision-Date: 2026-06-06 08:58+0400\n" |
| 11 |
"Last-Translator: Zayed Al-Saidi <[email protected]>\n" |
| 12 |
"Language-Team: Arabic <[email protected]>\n" |
| 13 |
"Language: ar\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 &&" |
| 18 |
" n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" |
| 19 |
"X-Generator: Lokalize 23.08.5\n" |
| 20 |
|
| 21 |
#. type: TH |
| 22 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 23 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 24 |
#, no-wrap |
| 25 |
msgid "rand" |
| 26 |
msgstr "rand" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 30 |
#: opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "2026-02-08" |
| 33 |
msgstr "8 فبراير 2026" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable |
| 37 |
#, no-wrap |
| 38 |
msgid "Linux man-pages 6.18" |
| 39 |
msgstr "صفحات دليل لينكس 6.18" |
| 40 |
|
| 41 |
#. type: SH |
| 42 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 43 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 44 |
#, no-wrap |
| 45 |
msgid "NAME" |
| 46 |
msgstr "الاسم" |
| 47 |
|
| 48 |
#. type: Plain text |
| 49 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 50 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 51 |
msgid "rand, rand_r, srand - pseudo-random number generator" |
| 52 |
msgstr "rand, rand_r, srand - مولد أعداد شبه عشوائية" |
| 53 |
|
| 54 |
#. type: SH |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
#, no-wrap |
| 58 |
msgid "LIBRARY" |
| 59 |
msgstr "المكتبة" |
| 60 |
|
| 61 |
#. type: Plain text |
| 62 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 63 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 65 |
msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)" |
| 66 |
|
| 67 |
#. type: SH |
| 68 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 69 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
#, no-wrap |
| 71 |
msgid "SYNOPSIS" |
| 72 |
msgstr "موجز" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 76 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
#, no-wrap |
| 78 |
msgid "B<#include E<lt>stdlib.hE<gt>>\n" |
| 79 |
msgstr "B<#include E<lt>stdlib.hE<gt>>\n" |
| 80 |
|
| 81 |
#. type: Plain text |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "" |
| 86 |
"B<int rand(void);>\n" |
| 87 |
"B<void srand(unsigned int >I<seed>B<);>\n" |
| 88 |
msgstr "" |
| 89 |
"B<int rand(void);>\n" |
| 90 |
"B<void srand(unsigned int >I<seed>B<);>\n" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "B<[[deprecated]] int rand_r(unsigned int *>I<seedp>B<);>\n" |
| 97 |
msgstr "B<[[deprecated]] int rand_r(unsigned int *>I<seedp>B<);>\n" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
msgid "" |
| 103 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 104 |
msgstr "" |
| 105 |
"متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):" |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
msgid "B<rand_r>():" |
| 111 |
msgstr "B<rand_r>():" |
| 112 |
|
| 113 |
#. type: Plain text |
| 114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 116 |
#, no-wrap |
| 117 |
msgid "" |
| 118 |
" Since glibc 2.24:\n" |
| 119 |
" _POSIX_C_SOURCE E<gt>= 199506L\n" |
| 120 |
" glibc 2.23 and earlier\n" |
| 121 |
" _POSIX_C_SOURCE\n" |
| 122 |
msgstr "" |
| 123 |
" منذ glibc 2.24:\n" |
| 124 |
" _POSIX_C_SOURCE E<gt>= 199506L\n" |
| 125 |
" glibc 2.23 وما قبله:\n" |
| 126 |
" _POSIX_C_SOURCE\n" |
| 127 |
|
| 128 |
#. type: SH |
| 129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 131 |
#, no-wrap |
| 132 |
msgid "DESCRIPTION" |
| 133 |
msgstr "الوصف" |
| 134 |
|
| 135 |
#. type: Plain text |
| 136 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 137 |
#: opensuse-tumbleweed |
| 138 |
#| msgid "" |
| 139 |
#| "The B<rand>() function returns a pseudo-random integer in the range 0 to " |
| 140 |
#| "B<RAND_MAX> inclusive (i.e., the mathematical range [B<0>," |
| 141 |
#| "\\~B<RAND_MAX>])." |
| 142 |
msgid "" |
| 143 |
"The B<rand>() function returns a pseudo-random integer in the range 0 to " |
| 144 |
"B<RAND_MAX> inclusive (i.e., the mathematical range [B<0>,\\ B<RAND_MAX>])." |
| 145 |
msgstr "" |
| 146 |
"ترجع الدالة B<rand>() عددًا صحيحًا شبه عشوائي في النطاق من 0 إلى B<RAND_MAX> " |
| 147 |
"شاملاً (أي النطاق الرياضي [B<0>,\\ B<RAND_MAX>])." |
| 148 |
|
| 149 |
#. type: Plain text |
| 150 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 151 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 152 |
msgid "" |
| 153 |
"The B<srand>() function sets its argument as the seed for a new sequence of " |
| 154 |
"pseudo-random integers to be returned by B<rand>(). These sequences are " |
| 155 |
"repeatable by calling B<srand>() with the same seed value." |
| 156 |
msgstr "" |
| 157 |
"تضبط الدالة B<srand>() معاملها كبذرة لتسلسل جديد من الأعداد الصحيحة شبه " |
| 158 |
"العشوائية التي تُرجعها B<rand>(). هذه التسلسلات قابلة للتكرار باستدعاء " |
| 159 |
"B<srand>() بنفس قيمة البذرة." |
| 160 |
|
| 161 |
#. type: Plain text |
| 162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 163 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 164 |
msgid "" |
| 165 |
"If no seed value is provided, the B<rand>() function is automatically " |
| 166 |
"seeded with a value of 1." |
| 167 |
msgstr "إذا لم تُقدم قيمة بذرة، تُزرع الدالة B<rand>() آليًا بقيمة 1." |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
msgid "" |
| 173 |
"The function B<rand>() is not reentrant, since it uses hidden state that is " |
| 174 |
"modified on each call. This might just be the seed value to be used by the " |
| 175 |
"next call, or it might be something more elaborate. In order to get " |
| 176 |
"reproducible behavior in a threaded application, this state must be made " |
| 177 |
"explicit; this can be done using the reentrant function B<rand_r>()." |
| 178 |
msgstr "" |
| 179 |
"الدالة B<rand>() ليست قابلة لإعادة الدخول، لأنها تستخدم حالة مخفية تُعدل في " |
| 180 |
"كل استدعاء. قد تكون هذه مجرد قيمة البذرة التي ستستخدمها الاستدعاءات " |
| 181 |
"التالية، أو قد تكون شيئًا أكثر تعقيدًا. للحصول على سلوك قابل للتكرار في" |
| 182 |
" تطبيق " |
| 183 |
"متعدد الخيوط، يجب جعل هذه الحالة صريحة؛ يمكن فعل ذلك باستخدام الدالة القابلة " |
| 184 |
"لإعادة الدخول B<rand_r>()." |
| 185 |
|
| 186 |
#. type: Plain text |
| 187 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 188 |
#: opensuse-tumbleweed |
| 189 |
#| msgid "" |
| 190 |
#| "Like B<rand>(), B<rand_r>() returns a pseudo-random integer in the range " |
| 191 |
#| "[B<0>,\\~B<RAND_MAX>]. The I<seedp> argument is a pointer to an " |
| 192 |
#| "I<unsigned int> that is used to store state between calls. If " |
| 193 |
#| "B<rand_r>() is called with the same initial value for the integer " |
| 194 |
#| "pointed to by I<seedp>, and that value is not modified between calls, " |
| 195 |
#| "then the same pseudo-random sequence will result." |
| 196 |
msgid "" |
| 197 |
"Like B<rand>(), B<rand_r>() returns a pseudo-random integer in the range " |
| 198 |
"[B<0>,\\ B<RAND_MAX>]. The I<seedp> argument is a pointer to an I<unsigned " |
| 199 |
"int> that is used to store state between calls. If B<rand_r>() is called " |
| 200 |
"with the same initial value for the integer pointed to by I<seedp>, and that " |
| 201 |
"value is not modified between calls, then the same pseudo-random sequence " |
| 202 |
"will result." |
| 203 |
msgstr "" |
| 204 |
"مثل B<rand>()، ترجع B<rand_r>() عددًا صحيحًا شبه عشوائي في النطاق [B<0>," |
| 205 |
"\\ B<RAND_MAX>]. المعامل I<seedp> هو مؤشر إلى I<unsigned int> يُستخدم لتخزين " |
| 206 |
"الحالة بين الاستدعاءات. إذا استُدعيت B<rand_r>() بنفس القيمة الأولية للعدد " |
| 207 |
"الصحيح المشار إليه بواسطة I<seedp>، ولم تُعدل تلك القيمة بين الاستدعاءات، " |
| 208 |
"فسينتج نفس التسلسل شبه العشوائي." |
| 209 |
|
| 210 |
#. type: Plain text |
| 211 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 212 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 213 |
msgid "" |
| 214 |
"The value pointed to by the I<seedp> argument of B<rand_r>() provides only " |
| 215 |
"a very small amount of state, so this function will be a weak pseudo-random " |
| 216 |
"generator. Try B<drand48_r>(3) instead." |
| 217 |
msgstr "" |
| 218 |
"القيمة المشار إليها بواسطة معامل I<seedp> للدالة B<rand_r>() توفر فقط كمية " |
| 219 |
"صغيرة جدًا من الحالة، لذا ستكون هذه الدالة مولدًا شبه عشوائي ضعيفًا. جرب " |
| 220 |
"B<drand48_r>(3) بدلاً من ذلك." |
| 221 |
|
| 222 |
#. type: SH |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
#, no-wrap |
| 226 |
msgid "RETURN VALUE" |
| 227 |
msgstr "قيمة الإرجاع" |
| 228 |
|
| 229 |
#. type: Plain text |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
msgid "" |
| 233 |
"The B<rand>() and B<rand_r>() functions return a value between 0 and " |
| 234 |
"B<RAND_MAX> (inclusive). The B<srand>() function returns no value." |
| 235 |
msgstr "" |
| 236 |
"ترجع الدالتان B<rand>() و B<rand_r>() قيمة بين 0 و B<RAND_MAX> (شاملاً). " |
| 237 |
"لا ترجع الدالة B<srand>() أي قيمة." |
| 238 |
|
| 239 |
#. type: SH |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
#, no-wrap |
| 243 |
msgid "ATTRIBUTES" |
| 244 |
msgstr "السمات" |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
msgid "" |
| 250 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 251 |
msgstr "" |
| 252 |
"للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)." |
| 253 |
|
| 254 |
#. type: tbl table |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
#, no-wrap |
| 258 |
msgid "Interface" |
| 259 |
msgstr "الواجهة" |
| 260 |
|
| 261 |
#. type: tbl table |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
#, no-wrap |
| 265 |
msgid "Attribute" |
| 266 |
msgstr "السمة" |
| 267 |
|
| 268 |
#. type: tbl table |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
#, no-wrap |
| 272 |
msgid "Value" |
| 273 |
msgstr "القيمة" |
| 274 |
|
| 275 |
#. type: tbl table |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
#, no-wrap |
| 279 |
msgid ".na\n" |
| 280 |
msgstr ".na\n" |
| 281 |
|
| 282 |
#. type: tbl table |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
#, no-wrap |
| 286 |
msgid ".nh\n" |
| 287 |
msgstr ".nh\n" |
| 288 |
|
| 289 |
#. type: tbl table |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
#, no-wrap |
| 293 |
msgid "" |
| 294 |
"B<rand>(),\n" |
| 295 |
"B<rand_r>(),\n" |
| 296 |
"B<srand>()" |
| 297 |
msgstr "" |
| 298 |
"B<rand>(),\n" |
| 299 |
"B<rand_r>(),\n" |
| 300 |
"B<srand>()" |
| 301 |
|
| 302 |
#. type: tbl table |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
#, no-wrap |
| 306 |
msgid "Thread safety" |
| 307 |
msgstr "سلامة الخيوط" |
| 308 |
|
| 309 |
#. type: tbl table |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
#, no-wrap |
| 313 |
msgid "MT-Safe" |
| 314 |
msgstr "MT-Safe" |
| 315 |
|
| 316 |
#. type: SH |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
#, no-wrap |
| 320 |
msgid "VERSIONS" |
| 321 |
msgstr "الإصدارات" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 325 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 326 |
msgid "" |
| 327 |
"The versions of B<rand>() and B<srand>() in the Linux C Library use the " |
| 328 |
"same random number generator as B<random>(3) and B<srandom>(3), so the " |
| 329 |
"lower-order bits should be as random as the higher-order bits. However, on " |
| 330 |
"older B<rand>() implementations, and on current implementations on " |
| 331 |
"different systems, the lower-order bits are much less random than the higher-" |
| 332 |
"order bits. Do not use this function in applications intended to be " |
| 333 |
"portable when good randomness is needed. (Use B<random>(3) instead.)" |
| 334 |
msgstr "" |
| 335 |
"إصدارات B<rand>() و B<srand>() في مكتبة C للينكس تستخدم نفس مولد الأعداد " |
| 336 |
"العشوائية مثل B<random>(3) و B<srandom>(3)، لذا يجب أن تكون البتات ذات " |
| 337 |
"الرتبة المنخفضة عشوائية بقدر البتات ذات الرتبة العالية. ومع ذلك، في تطبيقات " |
| 338 |
"B<rand>() القديمة، وفي التطبيقات الحالية على أنظمة مختلفة، تكون البتات ذات " |
| 339 |
"الرتبة المنخفضة أقل عشوائية بكثير من البتات ذات الرتبة العالية. لا تستخدم " |
| 340 |
"هذه الدالة في التطبيقات المعدة لتكون محمولة عندما تكون العشوائية الجيدة " |
| 341 |
"مطلوبة. (استخدم B<random>(3) بدلاً من ذلك.)" |
| 342 |
|
| 343 |
#. type: SH |
| 344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 345 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 346 |
#, no-wrap |
| 347 |
msgid "STANDARDS" |
| 348 |
msgstr "المعايير" |
| 349 |
|
| 350 |
#. type: TP |
| 351 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 352 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 353 |
#, no-wrap |
| 354 |
msgid "B<rand>()" |
| 355 |
msgstr "B<rand>()" |
| 356 |
|
| 357 |
#. type: TQ |
| 358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 359 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 360 |
#, no-wrap |
| 361 |
msgid "B<srand>()" |
| 362 |
msgstr "B<srand>()" |
| 363 |
|
| 364 |
#. type: Plain text |
| 365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 367 |
msgid "C11, POSIX.1-2008." |
| 368 |
msgstr "C11, POSIX.1-2008." |
| 369 |
|
| 370 |
#. type: TP |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
#, no-wrap |
| 374 |
msgid "B<rand_r>()" |
| 375 |
msgstr "B<rand_r>()" |
| 376 |
|
| 377 |
#. type: Plain text |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
msgid "POSIX.1-2008." |
| 381 |
msgstr "POSIX.1-2008." |
| 382 |
|
| 383 |
#. type: SH |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
#, no-wrap |
| 387 |
msgid "HISTORY" |
| 388 |
msgstr "التاريخ" |
| 389 |
|
| 390 |
#. type: Plain text |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
msgid "SVr4, 4.3BSD, C89, POSIX.1-2001." |
| 394 |
msgstr "SVr4, 4.3BSD, C89, POSIX.1-2001." |
| 395 |
|
| 396 |
#. type: Plain text |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
msgid "POSIX.1-2001. Obsolete in POSIX.1-2008." |
| 400 |
msgstr "POSIX.1-2001. مهمل في POSIX.1-2008." |
| 401 |
|
| 402 |
#. type: SH |
| 403 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 404 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 405 |
#, no-wrap |
| 406 |
msgid "EXAMPLES" |
| 407 |
msgstr "أمثلة" |
| 408 |
|
| 409 |
#. type: Plain text |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
msgid "" |
| 413 |
"POSIX.1-2001 gives the following example of an implementation of B<rand>() " |
| 414 |
"and B<srand>(), possibly useful when one needs the same sequence on two " |
| 415 |
"different machines." |
| 416 |
msgstr "" |
| 417 |
"يعطي POSIX.1-2001 المثال التالي لتنفيذ B<rand>() و B<srand>()، ربما يكون " |
| 418 |
"مفيدًا عندما يحتاج المرء نفس التسلسل على جهازين مختلفين." |
| 419 |
|
| 420 |
#. type: Plain text |
| 421 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 422 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 423 |
#, no-wrap |
| 424 |
msgid "" |
| 425 |
"static unsigned long next = 1;\n" |
| 426 |
"\\&\n" |
| 427 |
"/* RAND_MAX assumed to be 32767 */\n" |
| 428 |
"int myrand(void) {\n" |
| 429 |
" next = next * 1103515245 + 12345;\n" |
| 430 |
" return((unsigned) (next/65536) % 32768);\n" |
| 431 |
"}\n" |
| 432 |
"\\&\n" |
| 433 |
"void mysrand(unsigned int seed) {\n" |
| 434 |
" next = seed;\n" |
| 435 |
"}\n" |
| 436 |
msgstr "" |
| 437 |
"static unsigned long next = 1;\n" |
| 438 |
"\\&\n" |
| 439 |
"/* RAND_MAX assumed to be 32767 */\n" |
| 440 |
"int myrand(void) {\n" |
| 441 |
" next = next * 1103515245 + 12345;\n" |
| 442 |
" return((unsigned) (next/65536) % 32768);\n" |
| 443 |
"}\n" |
| 444 |
"\\&\n" |
| 445 |
"void mysrand(unsigned int seed) {\n" |
| 446 |
" next = seed;\n" |
| 447 |
"}\n" |
| 448 |
|
| 449 |
#. type: Plain text |
| 450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 451 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 452 |
msgid "" |
| 453 |
"The following program can be used to display the pseudo-random sequence " |
| 454 |
"produced by B<rand>() when given a particular seed. When the seed is " |
| 455 |
"I<-1>, the program uses a random seed." |
| 456 |
msgstr "" |
| 457 |
"يمكن استخدام البرنامج التالي لعرض التسلسل شبه العشوائي الذي تُنتجه B<rand>() " |
| 458 |
"عند إعطائها بذرة معينة. عندما تكون البذرة I<-1>، يستخدم البرنامج بذرة " |
| 459 |
"عشوائية." |
| 460 |
|
| 461 |
#. type: Plain text |
| 462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
#, no-wrap |
| 465 |
msgid "" |
| 466 |
"#include E<lt>stdio.hE<gt>\n" |
| 467 |
"#include E<lt>stdlib.hE<gt>\n" |
| 468 |
"\\&\n" |
| 469 |
"int\n" |
| 470 |
"main(int argc, char *argv[])\n" |
| 471 |
"{\n" |
| 472 |
" int r;\n" |
| 473 |
" unsigned int seed, nloops;\n" |
| 474 |
"\\&\n" |
| 475 |
" if (argc != 3) {\n" |
| 476 |
" fprintf(stderr, \"Usage: %s E<lt>seedE<gt> E<lt>nloopsE<gt>\\[rs]n\"," |
| 477 |
" argv[0]);\n" |
| 478 |
" exit(EXIT_FAILURE);\n" |
| 479 |
" }\n" |
| 480 |
"\\&\n" |
| 481 |
" seed = atoi(argv[1]);\n" |
| 482 |
" nloops = atoi(argv[2]);\n" |
| 483 |
"\\&\n" |
| 484 |
" if (seed == -1) {\n" |
| 485 |
" seed = arc4random();\n" |
| 486 |
" printf(\"seed: %u\\[rs]n\", seed);\n" |
| 487 |
" }\n" |
| 488 |
"\\&\n" |
| 489 |
" srand(seed);\n" |
| 490 |
" for (unsigned int j = 0; j E<lt> nloops; j++) {\n" |
| 491 |
" r = rand();\n" |
| 492 |
" printf(\"%d\\[rs]n\", r);\n" |
| 493 |
" }\n" |
| 494 |
"\\&\n" |
| 495 |
" exit(EXIT_SUCCESS);\n" |
| 496 |
"}\n" |
| 497 |
msgstr "" |
| 498 |
"#include E<lt>stdio.hE<gt>\n" |
| 499 |
"#include E<lt>stdlib.hE<gt>\n" |
| 500 |
"\\&\n" |
| 501 |
"int\n" |
| 502 |
"main(int argc, char *argv[])\n" |
| 503 |
"{\n" |
| 504 |
" int r;\n" |
| 505 |
" unsigned int seed, nloops;\n" |
| 506 |
"\\&\n" |
| 507 |
" if (argc != 3) {\n" |
| 508 |
" fprintf(stderr, \"Usage: %s E<lt>seedE<gt> E<lt>nloopsE<gt>\\[rs]n\"," |
| 509 |
" argv[0]);\n" |
| 510 |
" exit(EXIT_FAILURE);\n" |
| 511 |
" }\n" |
| 512 |
"\\&\n" |
| 513 |
" seed = atoi(argv[1]);\n" |
| 514 |
" nloops = atoi(argv[2]);\n" |
| 515 |
"\\&\n" |
| 516 |
" if (seed == -1) {\n" |
| 517 |
" seed = arc4random();\n" |
| 518 |
" printf(\"seed: %u\\[rs]n\", seed);\n" |
| 519 |
" }\n" |
| 520 |
"\\&\n" |
| 521 |
" srand(seed);\n" |
| 522 |
" for (unsigned int j = 0; j E<lt> nloops; j++) {\n" |
| 523 |
" r = rand();\n" |
| 524 |
" printf(\"%d\\[rs]n\", r);\n" |
| 525 |
" }\n" |
| 526 |
"\\&\n" |
| 527 |
" exit(EXIT_SUCCESS);\n" |
| 528 |
"}\n" |
| 529 |
|
| 530 |
#. type: SH |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
#, no-wrap |
| 534 |
msgid "SEE ALSO" |
| 535 |
msgstr "انظر أيضًا" |
| 536 |
|
| 537 |
#. type: Plain text |
| 538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 540 |
msgid "B<drand48>(3), B<random>(3)" |
| 541 |
msgstr "B<drand48>(3), B<random>(3)" |
| 542 |
|
| 543 |
#. type: TH |
| 544 |
#: debian-trixie |
| 545 |
#, no-wrap |
| 546 |
msgid "2024-06-15" |
| 547 |
msgstr "15 يونيو 2024" |
| 548 |
|
| 549 |
#. type: TH |
| 550 |
#: debian-trixie |
| 551 |
#, no-wrap |
| 552 |
msgid "Linux man-pages 6.9.1" |
| 553 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 554 |
|
| 555 |
#. type: Plain text |
| 556 |
#: debian-trixie |
| 557 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 558 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 559 |
|
| 560 |
#. type: Plain text |
| 561 |
#: debian-trixie fedora-44 fedora-rawhide |
| 562 |
msgid "" |
| 563 |
"The B<rand>() function returns a pseudo-random integer in the range 0 to " |
| 564 |
"B<RAND_MAX> inclusive (i.e., the mathematical range [0,\\ B<RAND_MAX>])." |
| 565 |
msgstr "" |
| 566 |
"تُرجع الدالة B<rand>() عددًا صحيحًا شبه عشوائي في النطاق من 0 إلى B<RAND_MAX> " |
| 567 |
"شاملًا (أي النطاق الرياضي [0,\\ B<RAND_MAX>])." |
| 568 |
|
| 569 |
#. type: Plain text |
| 570 |
#: debian-trixie fedora-44 fedora-rawhide |
| 571 |
msgid "" |
| 572 |
"Like B<rand>(), B<rand_r>() returns a pseudo-random integer in the range [0," |
| 573 |
"\\ B<RAND_MAX>]. The I<seedp> argument is a pointer to an I<unsigned int> " |
| 574 |
"that is used to store state between calls. If B<rand_r>() is called with " |
| 575 |
"the same initial value for the integer pointed to by I<seedp>, and that " |
| 576 |
"value is not modified between calls, then the same pseudo-random sequence " |
| 577 |
"will result." |
| 578 |
msgstr "" |
| 579 |
"مثل B<rand>()، تُرجع B<rand_r>() عددًا صحيحًا شبه عشوائي في النطاق [0,\\ " |
| 580 |
"B<RAND_MAX>]. المعامل I<seedp> هو مؤشر إلى I<unsigned int> يُستخدم لتخزين " |
| 581 |
"الحالة بين الاستدعاءات. إذا استُدعيت B<rand_r>() بنفس القيمة الأولية للعدد " |
| 582 |
"الصحيح المشار إليه بواسطة I<seedp>، ولم تُعدل تلك القيمة بين الاستدعاءات، " |
| 583 |
"فسينتج نفس التسلسل شبه العشوائي." |
| 584 |
|
| 585 |
#. type: Plain text |
| 586 |
#: debian-trixie |
| 587 |
#, no-wrap |
| 588 |
msgid "" |
| 589 |
"static unsigned long next = 1;\n" |
| 590 |
"\\&\n" |
| 591 |
"/* RAND_MAX assumed to be 32767 */\n" |
| 592 |
"int myrand(void) {\n" |
| 593 |
" next = next * 1103515245 + 12345;\n" |
| 594 |
" return((unsigned)(next/65536) % 32768);\n" |
| 595 |
"}\n" |
| 596 |
"\\&\n" |
| 597 |
"void mysrand(unsigned int seed) {\n" |
| 598 |
" next = seed;\n" |
| 599 |
"}\n" |
| 600 |
msgstr "" |
| 601 |
"static unsigned long next = 1;\n" |
| 602 |
"\\&\n" |
| 603 |
"/* RAND_MAX assumed to be 32767 */\n" |
| 604 |
"int myrand(void) {\n" |
| 605 |
" next = next * 1103515245 + 12345;\n" |
| 606 |
" return((unsigned)(next/65536) % 32768);\n" |
| 607 |
"}\n" |
| 608 |
"\\&\n" |
| 609 |
"void mysrand(unsigned int seed) {\n" |
| 610 |
" next = seed;\n" |
| 611 |
"}\n" |
| 612 |
|
| 613 |
#. type: TH |
| 614 |
#: fedora-44 fedora-rawhide |
| 615 |
#, no-wrap |
| 616 |
msgid "2025-01-05" |
| 617 |
msgstr "5 يناير 2025" |
| 618 |
|
| 619 |
#. type: TH |
| 620 |
#: fedora-44 fedora-rawhide |
| 621 |
#, no-wrap |
| 622 |
msgid "Linux man-pages 6.13" |
| 623 |
msgstr "صفحات دليل لينكس 6.13" |
| 624 |
|
| 625 |
#. type: TH |
| 626 |
#: mageia-cauldron |
| 627 |
#, no-wrap |
| 628 |
msgid "Linux man-pages 6.17" |
| 629 |
msgstr "صفحات دليل لينكس 6.17" |
| 630 |
|
| 631 |
#. type: TH |
| 632 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 633 |
#, no-wrap |
| 634 |
msgid "Linux man-pages (unreleased)" |
| 635 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |
| 636 |
|