@@ -206,6 +206,8 @@ msgid ""
206206"class:`int`, :class:`float`, :class:`str`, :class:`bytes`, or :class:"
207207"`bytearray`."
208208msgstr ""
209+ "No futuro, *seed* deve ser um dos seguintes tipos: *NoneType*, :class:"
210+ "`int`, :class:`float`, :class:`str`, :class:`bytes` ou :class:`bytearray`."
209211
210212#: ../../library/random.rst:96
211213msgid ""
@@ -227,17 +229,19 @@ msgstr ""
227229
228230#: ../../library/random.rst:108
229231msgid "Functions for bytes"
230- msgstr ""
232+ msgstr "Funções para bytes "
231233
232234#: ../../library/random.rst:112
233235msgid "Generate *n* random bytes."
234- msgstr ""
236+ msgstr "Gera *n* bytes aleatórios. "
235237
236238#: ../../library/random.rst:114
237239msgid ""
238240"This method should not be used for generating security tokens. Use :func:"
239241"`secrets.token_bytes` instead."
240242msgstr ""
243+ "Este método não deve ser usado para gerar tokens de segurança. Use :func:"
244+ "`secrets.token_bytes`."
241245
242246#: ../../library/random.rst:121
243247msgid "Functions for integers"
@@ -288,10 +292,15 @@ msgid ""
288292"as an optional part of the API. When available, :meth:`getrandbits` enables :"
289293"meth:`randrange` to handle arbitrarily large ranges."
290294msgstr ""
295+ "Retorna um número inteiro Python com bits aleatórios *k*. Este método é "
296+ "fornecido com o gerador MersenneTwister e alguns outros geradores também "
297+ "podem fornecê-lo como uma parte opcional da API. Quando disponível, :meth:"
298+ "`getrandbits` permite que :meth:`randrange` manipule intervalos "
299+ "arbitrariamente grandes."
291300
292301#: ../../library/random.rst:150
293302msgid "This method now accepts zero for *k*."
294- msgstr ""
303+ msgstr "Este método agora aceita zero em *k*. "
295304
296305#: ../../library/random.rst:155
297306msgid "Functions for sequences"
@@ -352,6 +361,11 @@ msgid ""
352361"undefined if any weight is negative. A :exc:`ValueError` is raised if all "
353362"weights are zero."
354363msgstr ""
364+ "Os *weight* ou *cum_weights* podem usar qualquer tipo numérico que "
365+ "interopera com os valores :class:`float` retornados por :func:`random` (que "
366+ "inclui números inteiros, pontos flutuantes e frações, mas exclui decimais). "
367+ "O comportamento é indefinido se algum peso for negativo. Uma :exc:"
368+ "`ValueError` é levantada se todos os pesos forem zero."
355369
356370#: ../../library/random.rst:187
357371msgid ""
@@ -371,7 +385,7 @@ msgstr ""
371385
372386#: ../../library/random.rst:196
373387msgid "Raises a :exc:`ValueError` if all weights are zero."
374- msgstr ""
388+ msgstr "Levanta uma :exc:`ValueError` se todos os pesos forem zero. "
375389
376390#: ../../library/random.rst:202
377391msgid "Shuffle the sequence *x* in place."
@@ -411,7 +425,7 @@ msgstr ""
411425
412426#: ../../library/random.rst:217
413427msgid "The optional parameter *random*."
414- msgstr ""
428+ msgstr "O parâmetro opcional *random*. "
415429
416430#: ../../library/random.rst:222
417431msgid ""
0 commit comments