| 1 |
# Brazilian Portuguese translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Marcelo Pereira da Silva <[email protected]>, 2001. |
| 5 |
# André Luiz Fassone <[email protected]>, 2001. |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: manpages-l10n\n" |
| 9 |
"POT-Creation-Date: 2026-06-05 06:39+0200\n" |
| 10 |
"PO-Revision-Date: 2001-05-31 17:26+0200\n" |
| 11 |
"Last-Translator: André Luiz Fassone <[email protected]>\n" |
| 12 |
"Language-Team: Brazilian Portuguese <debian-l10n-" |
| 13 |
"[email protected]>\n" |
| 14 |
"Language: pt_BR\n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
| 19 |
"X-Generator: Lokalize 20.04.1\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 "" |
| 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 fevereiro 2026" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable |
| 37 |
#, fuzzy, no-wrap |
| 38 |
#| msgid "Linux man-pages 6.17" |
| 39 |
msgid "Linux man-pages 6.18" |
| 40 |
msgstr "Linux man-pages 6.17" |
| 41 |
|
| 42 |
#. type: SH |
| 43 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 44 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 45 |
#, no-wrap |
| 46 |
msgid "NAME" |
| 47 |
msgstr "NOME" |
| 48 |
|
| 49 |
#. type: Plain text |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
msgid "rand, rand_r, srand - pseudo-random number generator" |
| 53 |
msgstr "rand, rand_r, srand - gerador de números aleatórios" |
| 54 |
|
| 55 |
#. type: SH |
| 56 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 57 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 58 |
#, no-wrap |
| 59 |
msgid "LIBRARY" |
| 60 |
msgstr "BIBLIOTECA" |
| 61 |
|
| 62 |
#. type: Plain text |
| 63 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 64 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 66 |
msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)" |
| 67 |
|
| 68 |
#. type: SH |
| 69 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 70 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 71 |
#, no-wrap |
| 72 |
msgid "SYNOPSIS" |
| 73 |
msgstr "SINOPSE" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 77 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 78 |
#, no-wrap |
| 79 |
msgid "B<#include E<lt>stdlib.hE<gt>>\n" |
| 80 |
msgstr "B<#include E<lt>stdlib.hE<gt>>\n" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, fuzzy, no-wrap |
| 86 |
#| msgid "B<void srand(unsigned int >I<seed>B<);>\n" |
| 87 |
msgid "" |
| 88 |
"B<int rand(void);>\n" |
| 89 |
"B<void srand(unsigned int >I<seed>B<);>\n" |
| 90 |
msgstr "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 |
#, fuzzy, no-wrap |
| 96 |
#| msgid "B<int rand_r(unsigned int *>I<seedp>B<);>\n" |
| 97 |
msgid "B<[[deprecated]] int rand_r(unsigned int *>I<seedp>B<);>\n" |
| 98 |
msgstr "B<int rand_r(unsigned int *>I<seedp>B<);>\n" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
msgid "" |
| 104 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 105 |
msgstr "" |
| 106 |
"Requisitos de macro de teste de recursos para o glibc (consulte " |
| 107 |
"B<feature_test_macros>(7)):" |
| 108 |
|
| 109 |
#. type: Plain text |
| 110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 111 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
msgid "B<rand_r>():" |
| 113 |
msgstr "B<rand_r>():" |
| 114 |
|
| 115 |
#. type: Plain text |
| 116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 117 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 118 |
#, fuzzy, no-wrap |
| 119 |
#| msgid "" |
| 120 |
#| "Since glibc 2.24:\n" |
| 121 |
#| " _POSIX_C_SOURCE E<gt>= 199506L\n" |
| 122 |
msgid "" |
| 123 |
" Since glibc 2.24:\n" |
| 124 |
" _POSIX_C_SOURCE E<gt>= 199506L\n" |
| 125 |
" glibc 2.23 and earlier\n" |
| 126 |
" _POSIX_C_SOURCE\n" |
| 127 |
msgstr "" |
| 128 |
"Desde o glibc 2.24:\n" |
| 129 |
" _POSIX_C_SOURCE E<gt>= 199506L\n" |
| 130 |
|
| 131 |
#. type: SH |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
#, no-wrap |
| 135 |
msgid "DESCRIPTION" |
| 136 |
msgstr "DESCRIÇÃO" |
| 137 |
|
| 138 |
#. type: Plain text |
| 139 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 140 |
#: opensuse-tumbleweed |
| 141 |
#, fuzzy |
| 142 |
#| msgid "" |
| 143 |
#| "The B<rand()> function returns a pseudo-random integer between 0 and " |
| 144 |
#| "B<RAND_MAX>." |
| 145 |
msgid "" |
| 146 |
"The B<rand>() function returns a pseudo-random integer in the range 0 to " |
| 147 |
"B<RAND_MAX> inclusive (i.e., the mathematical range [B<0>,\\ B<RAND_MAX>])." |
| 148 |
msgstr "" |
| 149 |
"A função B<rand()> retorna um número inteiro aleatório entre 0 e B<RAND_MAX>." |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
msgid "" |
| 155 |
"The B<srand>() function sets its argument as the seed for a new sequence of " |
| 156 |
"pseudo-random integers to be returned by B<rand>(). These sequences are " |
| 157 |
"repeatable by calling B<srand>() with the same seed value." |
| 158 |
msgstr "" |
| 159 |
"A função B<srand>() ajusta seu argumento como uma semente para uma nova " |
| 160 |
"sequência de números inteiros aleatórios a serem retornados por B<rand>(). " |
| 161 |
"Estas sequências podem ser repetidas chamando B<srand>() com o mesmo valor " |
| 162 |
"para a semente." |
| 163 |
|
| 164 |
#. type: Plain text |
| 165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 167 |
msgid "" |
| 168 |
"If no seed value is provided, the B<rand>() function is automatically " |
| 169 |
"seeded with a value of 1." |
| 170 |
msgstr "" |
| 171 |
"Se nenhum valor para a semente é fornecido, a função B<rand>() " |
| 172 |
"automaticamente assume o valor 1." |
| 173 |
|
| 174 |
#. type: Plain text |
| 175 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 176 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 177 |
msgid "" |
| 178 |
"The function B<rand>() is not reentrant, since it uses hidden state that is " |
| 179 |
"modified on each call. This might just be the seed value to be used by the " |
| 180 |
"next call, or it might be something more elaborate. In order to get " |
| 181 |
"reproducible behavior in a threaded application, this state must be made " |
| 182 |
"explicit; this can be done using the reentrant function B<rand_r>()." |
| 183 |
msgstr "" |
| 184 |
|
| 185 |
#. type: Plain text |
| 186 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 187 |
#: opensuse-tumbleweed |
| 188 |
msgid "" |
| 189 |
"Like B<rand>(), B<rand_r>() returns a pseudo-random integer in the range " |
| 190 |
"[B<0>,\\ B<RAND_MAX>]. The I<seedp> argument is a pointer to an I<unsigned " |
| 191 |
"int> that is used to store state between calls. If B<rand_r>() is called " |
| 192 |
"with the same initial value for the integer pointed to by I<seedp>, and that " |
| 193 |
"value is not modified between calls, then the same pseudo-random sequence " |
| 194 |
"will result." |
| 195 |
msgstr "" |
| 196 |
|
| 197 |
#. type: Plain text |
| 198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 199 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 200 |
msgid "" |
| 201 |
"The value pointed to by the I<seedp> argument of B<rand_r>() provides only " |
| 202 |
"a very small amount of state, so this function will be a weak pseudo-random " |
| 203 |
"generator. Try B<drand48_r>(3) instead." |
| 204 |
msgstr "" |
| 205 |
|
| 206 |
#. type: SH |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
#, no-wrap |
| 210 |
msgid "RETURN VALUE" |
| 211 |
msgstr "VALOR DE RETORNO" |
| 212 |
|
| 213 |
#. type: Plain text |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
#, fuzzy |
| 217 |
#| msgid "" |
| 218 |
#| "The B<rand()> function returns a value between 0 and RAND_MAX. The " |
| 219 |
#| "B<srand()> returns no value." |
| 220 |
msgid "" |
| 221 |
"The B<rand>() and B<rand_r>() functions return a value between 0 and " |
| 222 |
"B<RAND_MAX> (inclusive). The B<srand>() function returns no value." |
| 223 |
msgstr "" |
| 224 |
"A função B<rand()> retorna um valor entre 0 e RAND_MAX. A função B<srand()> " |
| 225 |
"não retorna nenhum valor." |
| 226 |
|
| 227 |
#. type: SH |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
#, no-wrap |
| 231 |
msgid "ATTRIBUTES" |
| 232 |
msgstr "ATRIBUTOS" |
| 233 |
|
| 234 |
#. type: Plain text |
| 235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 236 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
msgid "" |
| 238 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 239 |
msgstr "" |
| 240 |
"Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)." |
| 241 |
|
| 242 |
#. type: tbl table |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
#, no-wrap |
| 246 |
msgid "Interface" |
| 247 |
msgstr "Interface" |
| 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 "Attribute" |
| 254 |
msgstr "Atributo" |
| 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 "Value" |
| 261 |
msgstr "Valor" |
| 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 ".na\n" |
| 268 |
msgstr ".na\n" |
| 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 ".nh\n" |
| 275 |
msgstr ".nh\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 "" |
| 282 |
"B<rand>(),\n" |
| 283 |
"B<rand_r>(),\n" |
| 284 |
"B<srand>()" |
| 285 |
msgstr "" |
| 286 |
"B<rand>(),\n" |
| 287 |
"B<rand_r>(),\n" |
| 288 |
"B<srand>()" |
| 289 |
|
| 290 |
#. type: tbl table |
| 291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 292 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 293 |
#, no-wrap |
| 294 |
msgid "Thread safety" |
| 295 |
msgstr "Thread safety" |
| 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 "MT-Safe" |
| 302 |
msgstr "MT-Safe" |
| 303 |
|
| 304 |
#. type: SH |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
#, no-wrap |
| 308 |
msgid "VERSIONS" |
| 309 |
msgstr "VERSÕES" |
| 310 |
|
| 311 |
#. type: Plain text |
| 312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 313 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 314 |
#, fuzzy |
| 315 |
#| msgid "" |
| 316 |
#| "The versions of B<rand()> and B<srand()> in the Linux C Library use the " |
| 317 |
#| "same random number generator as B<random()> and B<srandom()>, so the " |
| 318 |
#| "lower-order bits should be as random as the higher-order bits. However, " |
| 319 |
#| "on older B<rand()> implementations, the lower-order bits are much less " |
| 320 |
#| "random than the higher-order bits." |
| 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 |
"As versões de B<rand()> e B<srand()> na biblioteca C do Linux utilizam o " |
| 331 |
"mesmo gerador de números aleatórios utilizado por B<random()> e " |
| 332 |
"B<srandom()>, então o bit de ordem inferior deve ser tão aleatório quanto o " |
| 333 |
"bit de ordem superior. No entanto, em implementações mais antigas de " |
| 334 |
"B<rand()>, os bits de ordem inferior são muito menos aleatórios que os bits " |
| 335 |
"de ordem superior." |
| 336 |
|
| 337 |
#. type: SH |
| 338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 339 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
#, no-wrap |
| 341 |
msgid "STANDARDS" |
| 342 |
msgstr "PADRÕES" |
| 343 |
|
| 344 |
#. type: TP |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
#, fuzzy, no-wrap |
| 348 |
#| msgid "B<rand_r>():" |
| 349 |
msgid "B<rand>()" |
| 350 |
msgstr "B<rand_r>():" |
| 351 |
|
| 352 |
#. type: TQ |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
#, fuzzy, no-wrap |
| 356 |
#| msgid "B<rand_r>():" |
| 357 |
msgid "B<srand>()" |
| 358 |
msgstr "B<rand_r>():" |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
msgid "C11, POSIX.1-2008." |
| 364 |
msgstr "C11, POSIX.1-2008." |
| 365 |
|
| 366 |
#. type: TP |
| 367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 368 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 369 |
#, fuzzy, no-wrap |
| 370 |
#| msgid "B<rand_r>():" |
| 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 "HISTÓRICO" |
| 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 |
#, fuzzy |
| 391 |
#| msgid "SVr4, 4.3BSD, POSIX.1-2001." |
| 392 |
msgid "SVr4, 4.3BSD, C89, POSIX.1-2001." |
| 393 |
msgstr "SVr4, 4.3BSD, POSIX.1-2001." |
| 394 |
|
| 395 |
#. type: Plain text |
| 396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 397 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 398 |
#, fuzzy |
| 399 |
#| msgid "POSIX.1-2001, POSIX.1-2008." |
| 400 |
msgid "POSIX.1-2001. Obsolete in POSIX.1-2008." |
| 401 |
msgstr "POSIX.1-2001, POSIX.1-2008." |
| 402 |
|
| 403 |
#. type: SH |
| 404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
#, no-wrap |
| 407 |
msgid "EXAMPLES" |
| 408 |
msgstr "EXEMPLOS" |
| 409 |
|
| 410 |
#. type: Plain text |
| 411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 412 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 413 |
msgid "" |
| 414 |
"POSIX.1-2001 gives the following example of an implementation of B<rand>() " |
| 415 |
"and B<srand>(), possibly useful when one needs the same sequence on two " |
| 416 |
"different machines." |
| 417 |
msgstr "" |
| 418 |
|
| 419 |
#. type: Plain text |
| 420 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 421 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
#, no-wrap |
| 423 |
msgid "" |
| 424 |
"static unsigned long next = 1;\n" |
| 425 |
"\\&\n" |
| 426 |
"/* RAND_MAX assumed to be 32767 */\n" |
| 427 |
"int myrand(void) {\n" |
| 428 |
" next = next * 1103515245 + 12345;\n" |
| 429 |
" return((unsigned) (next/65536) % 32768);\n" |
| 430 |
"}\n" |
| 431 |
"\\&\n" |
| 432 |
"void mysrand(unsigned int seed) {\n" |
| 433 |
" next = seed;\n" |
| 434 |
"}\n" |
| 435 |
msgstr "" |
| 436 |
|
| 437 |
#. type: Plain text |
| 438 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 439 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 440 |
msgid "" |
| 441 |
"The following program can be used to display the pseudo-random sequence " |
| 442 |
"produced by B<rand>() when given a particular seed. When the seed is " |
| 443 |
"I<-1>, the program uses a random seed." |
| 444 |
msgstr "" |
| 445 |
|
| 446 |
#. type: Plain text |
| 447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 448 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 449 |
#, no-wrap |
| 450 |
msgid "" |
| 451 |
"#include E<lt>stdio.hE<gt>\n" |
| 452 |
"#include E<lt>stdlib.hE<gt>\n" |
| 453 |
"\\&\n" |
| 454 |
"int\n" |
| 455 |
"main(int argc, char *argv[])\n" |
| 456 |
"{\n" |
| 457 |
" int r;\n" |
| 458 |
" unsigned int seed, nloops;\n" |
| 459 |
"\\&\n" |
| 460 |
" if (argc != 3) {\n" |
| 461 |
" fprintf(stderr, \"Usage: %s E<lt>seedE<gt> E<lt>nloopsE<gt>\\[rs]n\", argv[0]);\n" |
| 462 |
" exit(EXIT_FAILURE);\n" |
| 463 |
" }\n" |
| 464 |
"\\&\n" |
| 465 |
" seed = atoi(argv[1]);\n" |
| 466 |
" nloops = atoi(argv[2]);\n" |
| 467 |
"\\&\n" |
| 468 |
" if (seed == -1) {\n" |
| 469 |
" seed = arc4random();\n" |
| 470 |
" printf(\"seed: %u\\[rs]n\", seed);\n" |
| 471 |
" }\n" |
| 472 |
"\\&\n" |
| 473 |
" srand(seed);\n" |
| 474 |
" for (unsigned int j = 0; j E<lt> nloops; j++) {\n" |
| 475 |
" r = rand();\n" |
| 476 |
" printf(\"%d\\[rs]n\", r);\n" |
| 477 |
" }\n" |
| 478 |
"\\&\n" |
| 479 |
" exit(EXIT_SUCCESS);\n" |
| 480 |
"}\n" |
| 481 |
msgstr "" |
| 482 |
|
| 483 |
#. type: SH |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
#, no-wrap |
| 487 |
msgid "SEE ALSO" |
| 488 |
msgstr "VEJA TAMBÉM" |
| 489 |
|
| 490 |
#. type: Plain text |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
msgid "B<drand48>(3), B<random>(3)" |
| 494 |
msgstr "" |
| 495 |
|
| 496 |
#. type: TH |
| 497 |
#: debian-trixie |
| 498 |
#, no-wrap |
| 499 |
msgid "2024-06-15" |
| 500 |
msgstr "15 junho 2024" |
| 501 |
|
| 502 |
#. type: TH |
| 503 |
#: debian-trixie |
| 504 |
#, no-wrap |
| 505 |
msgid "Linux man-pages 6.9.1" |
| 506 |
msgstr "Linux man-pages 6.9.1" |
| 507 |
|
| 508 |
#. type: Plain text |
| 509 |
#: debian-trixie |
| 510 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 511 |
msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)" |
| 512 |
|
| 513 |
#. type: Plain text |
| 514 |
#: debian-trixie fedora-44 fedora-rawhide |
| 515 |
#, fuzzy |
| 516 |
#| msgid "" |
| 517 |
#| "The B<rand()> function returns a pseudo-random integer between 0 and " |
| 518 |
#| "B<RAND_MAX>." |
| 519 |
msgid "" |
| 520 |
"The B<rand>() function returns a pseudo-random integer in the range 0 to " |
| 521 |
"B<RAND_MAX> inclusive (i.e., the mathematical range [0,\\ B<RAND_MAX>])." |
| 522 |
msgstr "" |
| 523 |
"A função B<rand()> retorna um número inteiro aleatório entre 0 e B<RAND_MAX>." |
| 524 |
|
| 525 |
#. type: Plain text |
| 526 |
#: debian-trixie fedora-44 fedora-rawhide |
| 527 |
msgid "" |
| 528 |
"Like B<rand>(), B<rand_r>() returns a pseudo-random integer in the range " |
| 529 |
"[0,\\ B<RAND_MAX>]. The I<seedp> argument is a pointer to an I<unsigned " |
| 530 |
"int> that is used to store state between calls. If B<rand_r>() is called " |
| 531 |
"with the same initial value for the integer pointed to by I<seedp>, and that " |
| 532 |
"value is not modified between calls, then the same pseudo-random sequence " |
| 533 |
"will result." |
| 534 |
msgstr "" |
| 535 |
|
| 536 |
#. type: Plain text |
| 537 |
#: debian-trixie |
| 538 |
#, no-wrap |
| 539 |
msgid "" |
| 540 |
"static unsigned long next = 1;\n" |
| 541 |
"\\&\n" |
| 542 |
"/* RAND_MAX assumed to be 32767 */\n" |
| 543 |
"int myrand(void) {\n" |
| 544 |
" next = next * 1103515245 + 12345;\n" |
| 545 |
" return((unsigned)(next/65536) % 32768);\n" |
| 546 |
"}\n" |
| 547 |
"\\&\n" |
| 548 |
"void mysrand(unsigned int seed) {\n" |
| 549 |
" next = seed;\n" |
| 550 |
"}\n" |
| 551 |
msgstr "" |
| 552 |
|
| 553 |
#. type: TH |
| 554 |
#: fedora-44 fedora-rawhide |
| 555 |
#, no-wrap |
| 556 |
msgid "2025-01-05" |
| 557 |
msgstr "5 janeiro 2025" |
| 558 |
|
| 559 |
#. type: TH |
| 560 |
#: fedora-44 fedora-rawhide |
| 561 |
#, no-wrap |
| 562 |
msgid "Linux man-pages 6.13" |
| 563 |
msgstr "Linux man-pages 6.13" |
| 564 |
|
| 565 |
#. type: TH |
| 566 |
#: mageia-cauldron |
| 567 |
#, no-wrap |
| 568 |
msgid "Linux man-pages 6.17" |
| 569 |
msgstr "Linux man-pages 6.17" |
| 570 |
|
| 571 |
#. type: TH |
| 572 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 573 |
#, no-wrap |
| 574 |
msgid "Linux man-pages (unreleased)" |
| 575 |
msgstr "Linux man-pages (não lançado)" |