Debian Codegraph @

po/ro/man3/rand.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2024, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.21.0\n"
8 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
9 "PO-Revision-Date: 2025-06-04 00:14+0200\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "rand"
25 msgstr "rand"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 februarie 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NUME"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "rand, rand_r, srand - pseudo-random number generator"
51 msgstr "rand, rand_r, srand - generator de numere pseudo-aleatorii"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "BIBLIOTECA"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "SINOPSIS"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
78 msgstr "B<#include E<lt>stdlib.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<int rand(void);>\n"
86 "B<void srand(unsigned int >I<seed>B<);>\n"
87 msgstr ""
88 "B<int rand(void);>\n"
89 "B<void srand(unsigned int >I<seed>B<);>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "B<[[deprecated]] int rand_r(unsigned int *>I<seedp>B<);>\n"
96 msgstr "B<[[depreciat]] int rand_r(unsigned int *>I<seedp>B<);>\n"
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 msgid ""
102 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
103 msgstr ""
104 "Cerințe pentru macrocomenzi de testare a caracteristicilor pentru glibc "
105 "(consultați 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 " Începând cu glibc 2.24:\n"
124 " _POSIX_C_SOURCE E<gt>= 199506L\n"
125 " glibc 2.23 și versiunile anterioare:\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 "DESCRIERE"
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>,\\ B<RAND_MAX>])."
141 msgstr ""
142 "Funcția B<rand>() returnează un număr întreg pseudo-aleatoriu în intervalul "
143 "de la 0 la B<RAND_MAX> inclusiv (adică intervalul matematic [B<0>,\\ "
144 "B<RAND_MAX>])."
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "The B<srand>() function sets its argument as the seed for a new sequence of "
151 "pseudo-random integers to be returned by B<rand>(). These sequences are "
152 "repeatable by calling B<srand>() with the same seed value."
153 msgstr ""
154 "Funcția B<srand>() stabilește argumentul său ca sămânță pentru o nouă "
155 "secvență de numere întregi pseudo-aleatorii care va fi returnată de "
156 "B<rand>(). Aceste secvențe pot fi repetate prin apelarea B<srand>() cu "
157 "aceeași valoare de sămânță."
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 msgid ""
163 "If no seed value is provided, the B<rand>() function is automatically "
164 "seeded with a value of 1."
165 msgstr ""
166 "În cazul în care nu este furnizată nicio valoare de sămânță, funcția "
167 "B<rand>() este alimentată automat cu o valoare de 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 "Funcția B<rand>() nu este reentrantă, deoarece utilizează o stare ascunsă "
180 "care este modificată la fiecare apel. Aceasta ar putea fi doar valoarea "
181 "inițială care va fi utilizată de următorul apel sau ar putea fi ceva mai "
182 "elaborat. Pentru a obține un comportament reproductibil într-o aplicație cu "
183 "fire de execuție, această stare trebuie să fie explicită; acest lucru poate "
184 "fi realizat cu ajutorul funcției reentrante 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 I<unsigned "
192 "int> that is used to store state between calls. If B<rand_r>() is called "
193 "with the same initial value for the integer pointed to by I<seedp>, and that "
194 "value is not modified between calls, then the same pseudo-random sequence "
195 "will result."
196 msgstr ""
197 "Ca și B<rand>(), B<rand_r>() returnează un număr întreg pseudo-aleatoriu în "
198 "intervalul [B<0>,\\ B<RAND_MAX>]. Argumentul I<seedp> este un indicator "
199 "către un I<unsigned int> care este utilizat pentru a stoca starea între "
200 "apeluri. Dacă B<rand_r>() este apelat cu aceeași valoare inițială pentru "
201 "numărul întreg indicat de I<seedp>, iar această valoare nu este modificată "
202 "între apeluri, atunci va rezulta aceeași secvență pseudo-aleatorie."
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid ""
208 "The value pointed to by the I<seedp> argument of B<rand_r>() provides only "
209 "a very small amount of state, so this function will be a weak pseudo-random "
210 "generator. Try B<drand48_r>(3) instead."
211 msgstr ""
212 "Valoarea indicată de argumentul I<seedp> din B<rand_r>() oferă doar o "
213 "cantitate foarte mică de stare, astfel încât această funcție va fi un "
214 "generator pseudo-aleatoriu slab. Încercați în schimb B<drand48_r>(3)."
215
216 #. type: SH
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 #, no-wrap
220 msgid "RETURN VALUE"
221 msgstr "VALOAREA RETURNATĂ"
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "The B<rand>() and B<rand_r>() functions return a value between 0 and "
228 "B<RAND_MAX> (inclusive). The B<srand>() function returns no value."
229 msgstr ""
230 "Funcțiile B<rand>() și B<rand_r>() returnează o valoare cuprinsă între 0 și "
231 "B<RAND_MAX> (inclusiv). Funcția B<srand>() nu returnează nicio valoare."
232
233 #. type: SH
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "ATTRIBUTES"
238 msgstr "ATRIBUTE"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid ""
244 "For an explanation of the terms used in this section, see B<attributes>(7)."
245 msgstr ""
246 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
247 "B<attributes>(7)."
248
249 #. type: tbl table
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "Interface"
254 msgstr "Interfață"
255
256 #. type: tbl table
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "Attribute"
261 msgstr "Atribut"
262
263 #. type: tbl table
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "Value"
268 msgstr "Valoare"
269
270 #. type: tbl table
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid ".na\n"
275 msgstr ".na\n"
276
277 #. type: tbl table
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid ".nh\n"
282 msgstr ".nh\n"
283
284 #. type: tbl table
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid ""
289 "B<rand>(),\n"
290 "B<rand_r>(),\n"
291 "B<srand>()"
292 msgstr ""
293 "B<rand>(),\n"
294 "B<rand_r>(),\n"
295 "B<srand>()"
296
297 #. type: tbl table
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "Thread safety"
302 msgstr "Siguranța firelor"
303
304 #. type: tbl table
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "MT-Safe"
309 msgstr "MT-Safe"
310
311 #. type: SH
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "VERSIONS"
316 msgstr "VERSIUNI"
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "The versions of B<rand>() and B<srand>() in the Linux C Library use the "
323 "same random number generator as B<random>(3) and B<srandom>(3), so the "
324 "lower-order bits should be as random as the higher-order bits. However, on "
325 "older B<rand>() implementations, and on current implementations on "
326 "different systems, the lower-order bits are much less random than the higher-"
327 "order bits. Do not use this function in applications intended to be "
328 "portable when good randomness is needed. (Use B<random>(3) instead.)"
329 msgstr ""
330 "Versiunile de B<rand>() și B<srand>() din biblioteca Linux C utilizează "
331 "același generator de numere aleatoare ca și B<random>(3) și B<srandom>(3), "
332 "astfel încât biții de ordin inferior ar trebui să fie la fel de aleatori ca "
333 "și cei de ordin superior. Cu toate acestea, în implementările mai vechi ale "
334 "B<rand>() și în implementările actuale pe diferite sisteme, biții de ordin "
335 "inferior sunt mult mai puțin aleatori decât cei de ordin superior. Nu "
336 "utilizați această funcție în aplicații destinate să fie portabile atunci "
337 "când este necesar un bun caracter aleatoriu; (utilizați în schimb "
338 "B<random>(3).)"
339
340 #. type: SH
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "STANDARDS"
345 msgstr "STANDARDE"
346
347 #. type: TP
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid "B<rand>()"
352 msgstr "B<rand>()"
353
354 #. type: TQ
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, no-wrap
358 msgid "B<srand>()"
359 msgstr "B<srand>()"
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 msgid "C11, POSIX.1-2008."
365 msgstr "C11, POSIX.1-2008."
366
367 #. type: TP
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "B<rand_r>()"
372 msgstr "B<rand_r>()"
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid "POSIX.1-2008."
378 msgstr "POSIX.1-2008."
379
380 #. type: SH
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "HISTORY"
385 msgstr "ISTORIC"
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 msgid "SVr4, 4.3BSD, C89, POSIX.1-2001."
391 msgstr "SVr4, 4.3BSD, C89, POSIX.1-2001."
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid "POSIX.1-2001. Obsolete in POSIX.1-2008."
397 msgstr "POSIX.1-2001. Obsoletă în POSIX.1-2008."
398
399 #. type: SH
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "EXAMPLES"
404 msgstr "EXEMPLE"
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "POSIX.1-2001 gives the following example of an implementation of B<rand>() "
411 "and B<srand>(), possibly useful when one needs the same sequence on two "
412 "different machines."
413 msgstr ""
414 "POSIX.1-2001 oferă următorul exemplu de implementare a B<rand>() și "
415 "B<srand>(), posibil util atunci când este nevoie de aceeași secvență pe două "
416 "mașini diferite."
417
418 #. type: Plain text
419 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
420 #: opensuse-leap-16-1 opensuse-tumbleweed
421 #, no-wrap
422 msgid ""
423 "static unsigned long next = 1;\n"
424 "\\&\n"
425 "/* RAND_MAX assumed to be 32767 */\n"
426 "int myrand(void) {\n"
427 " next = next * 1103515245 + 12345;\n"
428 " return((unsigned) (next/65536) % 32768);\n"
429 "}\n"
430 "\\&\n"
431 "void mysrand(unsigned int seed) {\n"
432 " next = seed;\n"
433 "}\n"
434 msgstr ""
435 "static unsigned long next = 1;\n"
436 "\\&\n"
437 "/* RAND_MAX se presupune a fi 32767 */\n"
438 "int myrand(void) {\n"
439 " next = next * 1103515245 + 12345;\n"
440 " return((unsigned) (next/65536) % 32768);\n"
441 "}\n"
442 "\\&\n"
443 "void mysrand(unsigned int seed) {\n"
444 " next = seed;\n"
445 "}\n"
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 msgid ""
451 "The following program can be used to display the pseudo-random sequence "
452 "produced by B<rand>() when given a particular seed. When the seed is "
453 "I<-1>, the program uses a random seed."
454 msgstr ""
455 "Următorul program poate fi utilizat pentru a afișa secvența pseudo-aleatoare "
456 "produsă de B<rand>() atunci când i se dă o anumită sămânță. Atunci când "
457 "sămânța este I<-1>, programul utilizează o sămânță aleatoare."
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid ""
464 "#include E<lt>stdio.hE<gt>\n"
465 "#include E<lt>stdlib.hE<gt>\n"
466 "\\&\n"
467 "int\n"
468 "main(int argc, char *argv[])\n"
469 "{\n"
470 " int r;\n"
471 " unsigned int seed, nloops;\n"
472 "\\&\n"
473 " if (argc != 3) {\n"
474 " fprintf(stderr, \"Usage: %s E<lt>seedE<gt> E<lt>nloopsE<gt>\\[rs]n\", argv[0]);\n"
475 " exit(EXIT_FAILURE);\n"
476 " }\n"
477 "\\&\n"
478 " seed = atoi(argv[1]);\n"
479 " nloops = atoi(argv[2]);\n"
480 "\\&\n"
481 " if (seed == -1) {\n"
482 " seed = arc4random();\n"
483 " printf(\"seed: %u\\[rs]n\", seed);\n"
484 " }\n"
485 "\\&\n"
486 " srand(seed);\n"
487 " for (unsigned int j = 0; j E<lt> nloops; j++) {\n"
488 " r = rand();\n"
489 " printf(\"%d\\[rs]n\", r);\n"
490 " }\n"
491 "\\&\n"
492 " exit(EXIT_SUCCESS);\n"
493 "}\n"
494 msgstr ""
495 "#include E<lt>stdio.hE<gt>\n"
496 "#include E<lt>stdlib.hE<gt>\n"
497 "\\&\n"
498 "int\n"
499 "main(int argc, char *argv[])\n"
500 "{\n"
501 " int r;\n"
502 " unsigned int seed, nloops;\n"
503 "\\&\n"
504 " if (argc != 3) {\n"
505 " fprintf(stderr, \"Utilizare: %s E<lt>seedE<gt> E<lt>nloopsE<gt>\\[rs]n\", argv[0]);\n"
506 " exit(EXIT_FAILURE);\n"
507 " }\n"
508 "\\&\n"
509 " seed = atoi(argv[1]);\n"
510 " nloops = atoi(argv[2]);\n"
511 "\\&\n"
512 " if (seed == -1) {\n"
513 " seed = arc4random();\n"
514 " printf(\"sămânța: %u\\[rs]n\", seed);\n"
515 " }\n"
516 "\\&\n"
517 " srand(seed);\n"
518 " for (unsigned int j = 0; j E<lt> nloops; j++) {\n"
519 " r = rand();\n"
520 " printf(\"%d\\[rs]n\", r);\n"
521 " }\n"
522 "\\&\n"
523 " exit(EXIT_SUCCESS);\n"
524 "}\n"
525
526 #. type: SH
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 #, no-wrap
530 msgid "SEE ALSO"
531 msgstr "CONSULTAȚI ȘI"
532
533 #. type: Plain text
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 msgid "B<drand48>(3), B<random>(3)"
537 msgstr "B<drand48>(3), B<random>(3)"
538
539 #. type: TH
540 #: debian-trixie
541 #, no-wrap
542 msgid "2024-06-15"
543 msgstr "15 iunie 2024"
544
545 #. type: TH
546 #: debian-trixie
547 #, no-wrap
548 msgid "Linux man-pages 6.9.1"
549 msgstr "Pagini de manual de Linux 6.9.1"
550
551 #. type: Plain text
552 #: debian-trixie
553 msgid "Standard C library (I<libc>, I<-lc>)"
554 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
555
556 #. type: Plain text
557 #: debian-trixie fedora-44 fedora-rawhide
558 msgid ""
559 "The B<rand>() function returns a pseudo-random integer in the range 0 to "
560 "B<RAND_MAX> inclusive (i.e., the mathematical range [0,\\ B<RAND_MAX>])."
561 msgstr ""
562 "Funcția B<rand>() returnează un număr întreg pseudo-aleatoriu în intervalul "
563 "de la 0 la B<RAND_MAX> inclusiv (adică intervalul matematic [0,\\ "
564 "B<RAND_MAX>])."
565
566 #. type: Plain text
567 #: debian-trixie fedora-44 fedora-rawhide
568 msgid ""
569 "Like B<rand>(), B<rand_r>() returns a pseudo-random integer in the range "
570 "[0,\\ B<RAND_MAX>]. The I<seedp> argument is a pointer to an I<unsigned "
571 "int> that is used to store state between calls. If B<rand_r>() is called "
572 "with the same initial value for the integer pointed to by I<seedp>, and that "
573 "value is not modified between calls, then the same pseudo-random sequence "
574 "will result."
575 msgstr ""
576 "Ca și B<rand>(), B<rand_r>() returnează un număr întreg pseudo-aleatoriu în "
577 "intervalul [0,\\ B<RAND_MAX>]. Argumentul I<seedp> este un indicator către "
578 "un I<unsigned int> care este utilizat pentru a stoca starea între apeluri. "
579 "Dacă B<rand_r>() este apelat cu aceeași valoare inițială pentru numărul "
580 "întreg indicat de I<seedp>, iar această valoare nu este modificată între "
581 "apeluri, atunci va rezulta aceeași secvență pseudo-aleatorie."
582
583 #. type: Plain text
584 #: debian-trixie
585 #, no-wrap
586 msgid ""
587 "static unsigned long next = 1;\n"
588 "\\&\n"
589 "/* RAND_MAX assumed to be 32767 */\n"
590 "int myrand(void) {\n"
591 " next = next * 1103515245 + 12345;\n"
592 " return((unsigned)(next/65536) % 32768);\n"
593 "}\n"
594 "\\&\n"
595 "void mysrand(unsigned int seed) {\n"
596 " next = seed;\n"
597 "}\n"
598 msgstr ""
599 "static unsigned long next = 1;\n"
600 "\\&\n"
601 "/* RAND_MAX se presupune a fi 32767 */\n"
602 "int myrand(void) {\n"
603 " next = next * 1103515245 + 12345;\n"
604 " return((unsigned)(next/65536) % 32768);\n"
605 "}\n"
606 "\\&\n"
607 "void mysrand(unsigned int seed) {\n"
608 " next = seed;\n"
609 "}\n"
610
611 #. type: TH
612 #: fedora-44 fedora-rawhide
613 #, no-wrap
614 msgid "2025-01-05"
615 msgstr "5 ianuarie 2025"
616
617 #. type: TH
618 #: fedora-44 fedora-rawhide
619 #, no-wrap
620 msgid "Linux man-pages 6.13"
621 msgstr "Pagini de manual de Linux 6.13"
622
623 #. type: TH
624 #: mageia-cauldron
625 #, no-wrap
626 msgid "Linux man-pages 6.17"
627 msgstr "Pagini de manual de Linux 6.17"
628
629 #. type: TH
630 #: opensuse-leap-16-1 opensuse-tumbleweed
631 #, no-wrap
632 msgid "Linux man-pages (unreleased)"
633 msgstr "Pagini de manual Linux (nepublicate)"