Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 33 additions & 3 deletions library/random.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-27 19:40+0200\n"
"PO-Revision-Date: 2017-05-27 14:03+0200\n"
"PO-Revision-Date: 2018-12-06 22:18+0100\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.11\n"
"X-Generator: Poedit 2.2\n"

#: ../Doc/library/random.rst:2
msgid ":mod:`random` --- Generate pseudo-random numbers"
msgstr ""
msgstr ":mod:`random` --- Génère des nombres pseudo-aléatoires"

#: ../Doc/library/random.rst:7
msgid "**Source code:** :source:`Lib/random.py`"
Expand All @@ -28,6 +28,8 @@ msgid ""
"This module implements pseudo-random number generators for various "
"distributions."
msgstr ""
"Ce module implémente des générateurs de nombres pseudo-aléatoires pour "
"différentes distributions."

#: ../Doc/library/random.rst:14
msgid ""
Expand All @@ -36,13 +38,21 @@ msgid ""
"permutation of a list in-place, and a function for random sampling without "
"replacement."
msgstr ""
"Pour les entiers, il y a une sélection uniforme à partir d'une plage. Pour "

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Pour les entiers, il y a une sélection uniforme à partir d'une plage. Pour "
"Pour les entiers, il existe une sélection uniforme à partir d'une plage. Pour "

comme dans la ligne suivante

Mais je trouve le tout assez lourd, à voir pour remplacer le tout par un "est disponible... sont disponibles".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, pas remplacé par "est disponible"

"les séquences, il existe une sélection uniforme d'un élément aléatoire, une "
"fonction pour générer une permutation aléatoire d'une liste sur place et une "
"fonction pour un échantillonnage aléatoire sans remplacement."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le "pour un échantillonnage" me semble bizarre... Peut-être à remplacer par "une fonction d'échantillonage" ou "une fonction pour échantilloner".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pas d'avis pour l'instant, on verra sur l'autre PR


#: ../Doc/library/random.rst:19
msgid ""
"On the real line, there are functions to compute uniform, normal (Gaussian), "
"lognormal, negative exponential, gamma, and beta distributions. For "
"generating distributions of angles, the von Mises distribution is available."
msgstr ""
"Sur la ligne réelle, il y a des fonctions pour calculer des distributions "

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L'ensemble des réels (je n'ai jamais entendu la ligne réelle en français).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On en a parlé recemment avec @JulienPalard et @deronnax si je me trompe pas ;) Si ils ont la conversation sous le coude

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. Perso ça ne me dit rien.

"uniformes, normales (gaussiennes), log-normales, exponentielles négatives, "
"gamma et bêta. Pour générer des distributions d'angles, la distribution de "
"*von Mises* est disponible."

#: ../Doc/library/random.rst:23
msgid ""
Expand All @@ -55,13 +65,26 @@ msgid ""
"However, being completely deterministic, it is not suitable for all "
"purposes, and is completely unsuitable for cryptographic purposes."
msgstr ""
"Presque toutes les fonctions du module dépendent de la fonction de base :"
"func:`.random`, qui génère un flotteur aléatoire de façon uniforme dans la "

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"func:`.random`, qui génère un flotteur aléatoire de façon uniforme dans la "
"func:`.random`, qui génère un nombre à virgule flottante aléatoire de façon uniforme dans la "

ou simplement "un flottant"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"plage semi-ouverte[0.0, 1.0]. Python utilise le Twister de Mersenne comme "

@awecx awecx Dec 7, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"plage semi-ouverte[0.0, 1.0]. Python utilise le Twister de Mersenne comme "
"plage semi-ouverte [0.0, 1.0). Python utilise l'algorithme de Mersenne–Twister comme "

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"générateur de noyau. Il produit des flotteurs de précision de 53 bits et a "

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"générateur de noyau. Il produit des flotteurs de précision de 53 bits et a "
"générateur de noyau. Il produit des flottants de précision de 53 bits et a "

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"une période de 2\\*\\*\\*19937-1. L'implémentation sous-jacente en C est à "
"la fois rapide et *threadsafe*. Le Twister de Mersenne est l'un des "

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"la fois rapide et *threadsafe*. Le Twister de Mersenne est l'un des "
"la fois rapide et *threadsafe*. Mersenne–Twister est l'un des "

@deronnax deronnax Jan 18, 2019

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edit. Je remplace par *Mersene Twister*, c'est comme ça que le dénomme le Wikipédia français

"générateurs de nombres aléatoires les plus largement testés qui existent. "
"Cependant, étant complètement déterministe, il n'est pas adapté à tous les "
"usages et est totalement inadapté à des fins cryptographiques."

#: ../Doc/library/random.rst:32
msgid ""
"The functions supplied by this module are actually bound methods of a hidden "
"instance of the :class:`random.Random` class. You can instantiate your own "
"instances of :class:`Random` to get generators that don't share state."
msgstr ""
"Les fonctions fournies par ce module sont réellement dépendant de méthodes "

@awecx awecx Dec 7, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Les fonctions fournies par ce module sont réellement dépendant de méthodes "
"Les fonctions fournies par ce module dépendent en réalité de méthodes "

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"d’une instance cachée de la classe :class:`randon.random`. Vous pouvez "
"créer vos propres instances de :class:`Random` pour obtenir des générateurs "
"qui ne partagent pas état."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"qui ne partagent pas état."
"indépendants."

ou "sans état partagé"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


#: ../Doc/library/random.rst:36
msgid ""
Expand All @@ -72,6 +95,13 @@ msgid ""
"`~Random.getrandbits` method --- this allows :meth:`randrange` to produce "
"selections over an arbitrarily large range."
msgstr ""
"La classe :class:`Random` peut également être sous-classé si vous voulez "

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"La classe :class:`Random` peut également être sous-classé si vous voulez "
"La classe :class:`Random` peut également être sous-classée si vous voulez "

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"utiliser un générateur de base différent de votre propre conception : dans "

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"utiliser un générateur de base différent de votre propre conception : dans "
"utiliser un générateur de base différent, de votre propre conception : dans "

Sinon le sens de la phrase change.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. Bien vu 👍

"ce cas, remplacez les méthodes :meth:`~Random.random`, :meth:`~Random."
"seed`, :meth:`~Random.gettate`, et :meth:`~Random.setstate`. En option, un "
"nouveau générateur peut fournir une méthode :meth:`~Random.getrandbits` --- "
"ce qui permet :meth:`randrange` de produire des sélections sur une plage "

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"ce qui permet :meth:`randrange` de produire des sélections sur une plage "
"ce qui permet à :meth:`randrange` de produire des sélections sur une plage "

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"arbitrairement large."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"arbitrairement large."
"de taille arbitraire."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


#: ../Doc/library/random.rst:42
msgid ""
Expand Down