| 1 |
# Spanish translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Gerardo Aburruzaga García <[email protected]>, 1998. |
| 5 |
msgid "" |
| 6 |
msgstr "" |
| 7 |
"Project-Id-Version: manpages-l10n\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:39+0200\n" |
| 9 |
"PO-Revision-Date: 2021-01-30 17:57+0100\n" |
| 10 |
"Last-Translator: Gerardo Aburruzaga García <[email protected]>\n" |
| 11 |
"Language-Team: Spanish <[email protected]>\n" |
| 12 |
"Language: es\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=2; plural=(n != 1);\n" |
| 17 |
"X-Generator: Lokalize 20.04.1\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "rand" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "8 Febrero 2026" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, fuzzy, no-wrap |
| 36 |
#| msgid "Linux man-pages 6.17" |
| 37 |
msgid "Linux man-pages 6.18" |
| 38 |
msgstr "Páginas de Manual de Linux 6.17" |
| 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 "NOMBRE" |
| 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 |
#, fuzzy |
| 51 |
#| msgid "rand, srand - random number generator." |
| 52 |
msgid "rand, rand_r, srand - pseudo-random number generator" |
| 53 |
msgstr "rand, srand - generador de números pseudo-aleatorios" |
| 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 Estándar C (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 "SINOPSIS" |
| 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<semilla>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 Macros de Prueba de Características para glibc (véase " |
| 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 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 "DESCRIPCIÓN" |
| 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 |
"La función B<rand()> devuelve un entero pseudo-aleatorio entre 0 y " |
| 150 |
"B<RAND_MAX>." |
| 151 |
|
| 152 |
#. type: Plain text |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
msgid "" |
| 156 |
"The B<srand>() function sets its argument as the seed for a new sequence of " |
| 157 |
"pseudo-random integers to be returned by B<rand>(). These sequences are " |
| 158 |
"repeatable by calling B<srand>() with the same seed value." |
| 159 |
msgstr "" |
| 160 |
"La función B<srand>() establece su argumento como la I<semilla> de una nueva " |
| 161 |
"serie de enteros seudo-aleatorios que serán devueltos en secuencia por " |
| 162 |
"B<rand>(). Estas secuencias son repetibles si se llama a B<srand>() con el " |
| 163 |
"mismo valor para I<semilla>." |
| 164 |
|
| 165 |
#. type: Plain text |
| 166 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 167 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 168 |
msgid "" |
| 169 |
"If no seed value is provided, the B<rand>() function is automatically " |
| 170 |
"seeded with a value of 1." |
| 171 |
msgstr "" |
| 172 |
"Si no se proporciona ningún valor para la semilla (i.e., no se llama a " |
| 173 |
"B<srand>()), la función B<rand>() automáticamente coge el valor 1 para la " |
| 174 |
"semilla." |
| 175 |
|
| 176 |
#. type: Plain text |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
msgid "" |
| 180 |
"The function B<rand>() is not reentrant, since it uses hidden state that is " |
| 181 |
"modified on each call. This might just be the seed value to be used by the " |
| 182 |
"next call, or it might be something more elaborate. In order to get " |
| 183 |
"reproducible behavior in a threaded application, this state must be made " |
| 184 |
"explicit; this can be done using the reentrant function B<rand_r>()." |
| 185 |
msgstr "" |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 189 |
#: opensuse-tumbleweed |
| 190 |
msgid "" |
| 191 |
"Like B<rand>(), B<rand_r>() returns a pseudo-random integer in the range " |
| 192 |
"[B<0>,\\ B<RAND_MAX>]. The I<seedp> argument is a pointer to an I<unsigned " |
| 193 |
"int> that is used to store state between calls. If B<rand_r>() is called " |
| 194 |
"with the same initial value for the integer pointed to by I<seedp>, and that " |
| 195 |
"value is not modified between calls, then the same pseudo-random sequence " |
| 196 |
"will result." |
| 197 |
msgstr "" |
| 198 |
|
| 199 |
#. type: Plain text |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
msgid "" |
| 203 |
"The value pointed to by the I<seedp> argument of B<rand_r>() provides only " |
| 204 |
"a very small amount of state, so this function will be a weak pseudo-random " |
| 205 |
"generator. Try B<drand48_r>(3) instead." |
| 206 |
msgstr "" |
| 207 |
|
| 208 |
#. type: SH |
| 209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 210 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 211 |
#, no-wrap |
| 212 |
msgid "RETURN VALUE" |
| 213 |
msgstr "VALOR DEVUELTO" |
| 214 |
|
| 215 |
#. type: Plain text |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
#, fuzzy |
| 219 |
#| msgid "" |
| 220 |
#| "The B<rand()> function returns a value between 0 and RAND_MAX. The " |
| 221 |
#| "B<srand()> returns no value." |
| 222 |
msgid "" |
| 223 |
"The B<rand>() and B<rand_r>() functions return a value between 0 and " |
| 224 |
"B<RAND_MAX> (inclusive). The B<srand>() function returns no value." |
| 225 |
msgstr "" |
| 226 |
"La función B<rand()> devuelve un valor entre 0 y RAND_MAX. La función " |
| 227 |
"B<srand()> no devuelve nada." |
| 228 |
|
| 229 |
#. type: SH |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
#, no-wrap |
| 233 |
msgid "ATTRIBUTES" |
| 234 |
msgstr "ATRIBUTOS" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 239 |
msgid "" |
| 240 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 241 |
msgstr "" |
| 242 |
"Para obtener una explicación de los términos usados en esta sección, véase " |
| 243 |
"B<attributes>(7)." |
| 244 |
|
| 245 |
#. type: tbl table |
| 246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 247 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
#, no-wrap |
| 249 |
msgid "Interface" |
| 250 |
msgstr "Interfaz" |
| 251 |
|
| 252 |
#. type: tbl table |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
#, no-wrap |
| 256 |
msgid "Attribute" |
| 257 |
msgstr "Atributo" |
| 258 |
|
| 259 |
#. type: tbl table |
| 260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 262 |
#, no-wrap |
| 263 |
msgid "Value" |
| 264 |
msgstr "Valor" |
| 265 |
|
| 266 |
#. type: tbl table |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
#, no-wrap |
| 270 |
msgid ".na\n" |
| 271 |
msgstr ".na\n" |
| 272 |
|
| 273 |
#. type: tbl table |
| 274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 275 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 276 |
#, no-wrap |
| 277 |
msgid ".nh\n" |
| 278 |
msgstr ".nh\n" |
| 279 |
|
| 280 |
#. type: tbl table |
| 281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 282 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 283 |
#, no-wrap |
| 284 |
msgid "" |
| 285 |
"B<rand>(),\n" |
| 286 |
"B<rand_r>(),\n" |
| 287 |
"B<srand>()" |
| 288 |
msgstr "" |
| 289 |
"B<rand>(),\n" |
| 290 |
"B<rand_r>(),\n" |
| 291 |
"B<srand>()" |
| 292 |
|
| 293 |
#. type: tbl table |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
#, no-wrap |
| 297 |
msgid "Thread safety" |
| 298 |
msgstr "Seguridad del hilo" |
| 299 |
|
| 300 |
#. type: tbl table |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
#, no-wrap |
| 304 |
msgid "MT-Safe" |
| 305 |
msgstr "Multi-hilo seguro" |
| 306 |
|
| 307 |
#. type: SH |
| 308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 310 |
#, no-wrap |
| 311 |
msgid "VERSIONS" |
| 312 |
msgstr "VERSIONES" |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
#, fuzzy |
| 318 |
#| msgid "" |
| 319 |
#| "The versions of B<rand()> and B<srand()> in the Linux C Library use the " |
| 320 |
#| "same random number generator as B<random()> and B<srandom()>, so the " |
| 321 |
#| "lower-order bits should be as random as the higher-order bits. However, " |
| 322 |
#| "on older B<rand()> implementations, the lower-order bits are much less " |
| 323 |
#| "random than the higher-order bits." |
| 324 |
msgid "" |
| 325 |
"The versions of B<rand>() and B<srand>() in the Linux C Library use the " |
| 326 |
"same random number generator as B<random>(3) and B<srandom>(3), so the " |
| 327 |
"lower-order bits should be as random as the higher-order bits. However, on " |
| 328 |
"older B<rand>() implementations, and on current implementations on " |
| 329 |
"different systems, the lower-order bits are much less random than the higher-" |
| 330 |
"order bits. Do not use this function in applications intended to be " |
| 331 |
"portable when good randomness is needed. (Use B<random>(3) instead.)" |
| 332 |
msgstr "" |
| 333 |
"Las versiones de B<rand()> y B<srand()> de la Biblioteca de C de Linux " |
| 334 |
"emplean el mismo generador de números aleatorios que B<random()> y " |
| 335 |
"B<srandom()>, de modo que los bits de orden más bajo deberían ser tan " |
| 336 |
"aleatorios como los de orden más alto. Sin embargo, en implementaciones de " |
| 337 |
"B<rand()> más antiguas, los bits de más bajo orden son mucho menos " |
| 338 |
"aleatorios que los de orden más alto." |
| 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 "ESTÁNDARES" |
| 346 |
|
| 347 |
#. type: TP |
| 348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
#, fuzzy, no-wrap |
| 351 |
#| msgid "B<rand_r>():" |
| 352 |
msgid "B<rand>()" |
| 353 |
msgstr "B<rand_r>():" |
| 354 |
|
| 355 |
#. type: TQ |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
#, fuzzy, no-wrap |
| 359 |
#| msgid "B<rand_r>():" |
| 360 |
msgid "B<srand>()" |
| 361 |
msgstr "B<rand_r>():" |
| 362 |
|
| 363 |
#. type: Plain text |
| 364 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 365 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 366 |
msgid "C11, POSIX.1-2008." |
| 367 |
msgstr "C11, POSIX.1-2008." |
| 368 |
|
| 369 |
#. type: TP |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
#, fuzzy, no-wrap |
| 373 |
#| msgid "B<rand_r>():" |
| 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 "HISTORIAL" |
| 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 |
#, fuzzy |
| 394 |
#| msgid "SVr4, 4.3BSD, POSIX.1-2001." |
| 395 |
msgid "SVr4, 4.3BSD, C89, POSIX.1-2001." |
| 396 |
msgstr "SVr4, 4.3BSD, POSIX.1-2001." |
| 397 |
|
| 398 |
#. type: Plain text |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
#, fuzzy |
| 402 |
#| msgid "POSIX.1-2001, POSIX.1-2008." |
| 403 |
msgid "POSIX.1-2001. Obsolete in POSIX.1-2008." |
| 404 |
msgstr "POSIX.1-2001, POSIX.1-2008." |
| 405 |
|
| 406 |
#. type: SH |
| 407 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 408 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 409 |
#, no-wrap |
| 410 |
msgid "EXAMPLES" |
| 411 |
msgstr "EJEMPLOS" |
| 412 |
|
| 413 |
#. type: Plain text |
| 414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 415 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 416 |
msgid "" |
| 417 |
"POSIX.1-2001 gives the following example of an implementation of B<rand>() " |
| 418 |
"and B<srand>(), possibly useful when one needs the same sequence on two " |
| 419 |
"different machines." |
| 420 |
msgstr "" |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 424 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
#, no-wrap |
| 426 |
msgid "" |
| 427 |
"static unsigned long next = 1;\n" |
| 428 |
"\\&\n" |
| 429 |
"/* RAND_MAX assumed to be 32767 */\n" |
| 430 |
"int myrand(void) {\n" |
| 431 |
" next = next * 1103515245 + 12345;\n" |
| 432 |
" return((unsigned) (next/65536) % 32768);\n" |
| 433 |
"}\n" |
| 434 |
"\\&\n" |
| 435 |
"void mysrand(unsigned int seed) {\n" |
| 436 |
" next = seed;\n" |
| 437 |
"}\n" |
| 438 |
msgstr "" |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
msgid "" |
| 444 |
"The following program can be used to display the pseudo-random sequence " |
| 445 |
"produced by B<rand>() when given a particular seed. When the seed is " |
| 446 |
"I<-1>, the program uses a random seed." |
| 447 |
msgstr "" |
| 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 |
#, no-wrap |
| 453 |
msgid "" |
| 454 |
"#include E<lt>stdio.hE<gt>\n" |
| 455 |
"#include E<lt>stdlib.hE<gt>\n" |
| 456 |
"\\&\n" |
| 457 |
"int\n" |
| 458 |
"main(int argc, char *argv[])\n" |
| 459 |
"{\n" |
| 460 |
" int r;\n" |
| 461 |
" unsigned int seed, nloops;\n" |
| 462 |
"\\&\n" |
| 463 |
" if (argc != 3) {\n" |
| 464 |
" fprintf(stderr, \"Usage: %s E<lt>seedE<gt> E<lt>nloopsE<gt>\\[rs]n\", argv[0]);\n" |
| 465 |
" exit(EXIT_FAILURE);\n" |
| 466 |
" }\n" |
| 467 |
"\\&\n" |
| 468 |
" seed = atoi(argv[1]);\n" |
| 469 |
" nloops = atoi(argv[2]);\n" |
| 470 |
"\\&\n" |
| 471 |
" if (seed == -1) {\n" |
| 472 |
" seed = arc4random();\n" |
| 473 |
" printf(\"seed: %u\\[rs]n\", seed);\n" |
| 474 |
" }\n" |
| 475 |
"\\&\n" |
| 476 |
" srand(seed);\n" |
| 477 |
" for (unsigned int j = 0; j E<lt> nloops; j++) {\n" |
| 478 |
" r = rand();\n" |
| 479 |
" printf(\"%d\\[rs]n\", r);\n" |
| 480 |
" }\n" |
| 481 |
"\\&\n" |
| 482 |
" exit(EXIT_SUCCESS);\n" |
| 483 |
"}\n" |
| 484 |
msgstr "" |
| 485 |
|
| 486 |
#. type: SH |
| 487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 488 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 489 |
#, no-wrap |
| 490 |
msgid "SEE ALSO" |
| 491 |
msgstr "VÉASE TAMBIÉN" |
| 492 |
|
| 493 |
#. type: Plain text |
| 494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 496 |
msgid "B<drand48>(3), B<random>(3)" |
| 497 |
msgstr "B<drand48>(3), B<random>(3)" |
| 498 |
|
| 499 |
#. type: TH |
| 500 |
#: debian-trixie |
| 501 |
#, no-wrap |
| 502 |
msgid "2024-06-15" |
| 503 |
msgstr "15 Junio 2024" |
| 504 |
|
| 505 |
#. type: TH |
| 506 |
#: debian-trixie |
| 507 |
#, no-wrap |
| 508 |
msgid "Linux man-pages 6.9.1" |
| 509 |
msgstr "Páginas de Manual de Linux 6.9.1" |
| 510 |
|
| 511 |
#. type: Plain text |
| 512 |
#: debian-trixie |
| 513 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 514 |
msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)" |
| 515 |
|
| 516 |
#. type: Plain text |
| 517 |
#: debian-trixie fedora-44 fedora-rawhide |
| 518 |
#, fuzzy |
| 519 |
#| msgid "" |
| 520 |
#| "The B<rand()> function returns a pseudo-random integer between 0 and " |
| 521 |
#| "B<RAND_MAX>." |
| 522 |
msgid "" |
| 523 |
"The B<rand>() function returns a pseudo-random integer in the range 0 to " |
| 524 |
"B<RAND_MAX> inclusive (i.e., the mathematical range [0,\\ B<RAND_MAX>])." |
| 525 |
msgstr "" |
| 526 |
"La función B<rand()> devuelve un entero pseudo-aleatorio entre 0 y " |
| 527 |
"B<RAND_MAX>." |
| 528 |
|
| 529 |
#. type: Plain text |
| 530 |
#: debian-trixie fedora-44 fedora-rawhide |
| 531 |
msgid "" |
| 532 |
"Like B<rand>(), B<rand_r>() returns a pseudo-random integer in the range " |
| 533 |
"[0,\\ B<RAND_MAX>]. The I<seedp> argument is a pointer to an I<unsigned " |
| 534 |
"int> that is used to store state between calls. If B<rand_r>() is called " |
| 535 |
"with the same initial value for the integer pointed to by I<seedp>, and that " |
| 536 |
"value is not modified between calls, then the same pseudo-random sequence " |
| 537 |
"will result." |
| 538 |
msgstr "" |
| 539 |
|
| 540 |
#. type: Plain text |
| 541 |
#: debian-trixie |
| 542 |
#, no-wrap |
| 543 |
msgid "" |
| 544 |
"static unsigned long next = 1;\n" |
| 545 |
"\\&\n" |
| 546 |
"/* RAND_MAX assumed to be 32767 */\n" |
| 547 |
"int myrand(void) {\n" |
| 548 |
" next = next * 1103515245 + 12345;\n" |
| 549 |
" return((unsigned)(next/65536) % 32768);\n" |
| 550 |
"}\n" |
| 551 |
"\\&\n" |
| 552 |
"void mysrand(unsigned int seed) {\n" |
| 553 |
" next = seed;\n" |
| 554 |
"}\n" |
| 555 |
msgstr "" |
| 556 |
|
| 557 |
#. type: TH |
| 558 |
#: fedora-44 fedora-rawhide |
| 559 |
#, no-wrap |
| 560 |
msgid "2025-01-05" |
| 561 |
msgstr "5 Enero 2025" |
| 562 |
|
| 563 |
#. type: TH |
| 564 |
#: fedora-44 fedora-rawhide |
| 565 |
#, no-wrap |
| 566 |
msgid "Linux man-pages 6.13" |
| 567 |
msgstr "Páginas de Manual de Linux 6.13" |
| 568 |
|
| 569 |
#. type: TH |
| 570 |
#: mageia-cauldron |
| 571 |
#, no-wrap |
| 572 |
msgid "Linux man-pages 6.17" |
| 573 |
msgstr "Páginas de Manual de Linux 6.17" |
| 574 |
|
| 575 |
#. type: TH |
| 576 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 577 |
#, no-wrap |
| 578 |
msgid "Linux man-pages (unreleased)" |
| 579 |
msgstr "Páginas de Manual de Linux (no publicadas)" |