{"json_modified": "2015-07-09T02:49:45.499100", "slug": "Web/JavaScript/Referencia/Objetos_globales/Math/random", "tags": ["N\u00fameros Aleatorios", "Math", "Referencias", "Random", "JavaScript"], "locale": "es", "title": "Math.random()", "translations": [{"title": "Math.random()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random", "tags": ["Reference", "Method", "Math", "JavaScript"], "summary": "The Math.random()
function returns a floating-point, pseudo-random number in the range [0,\u00a01)
that is, from 0 (inclusive) up to but not including 1 (exclusive), which you can then scale to your desired range. The implementation selects the initial seed to the random number generation algorithm; it cannot be chosen or reset by the user.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-07-08T04:48:44", "review_tags": []}, {"title": "Math.random()", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Math/random", "tags": ["Math", "Method", "JavaScript"], "summary": "Zwraca liczb\u0119 pseudolosow\u0105 z przedzia\u0142u [0, 1)
. Podstaw\u0105 generatora liczb losowych (ang.\n\n seed\n ) jest aktualny czas, tak samo jak w j\u0119zyku Java. Poniewa\u017c random
jest statyczn\u0105 metod\u0105 obiektu Math
, zawsze odwo\u0142ujemy si\u0119 do niej poprzez Math.random()
, a nie jak do metody instancji obiektu Math utworzonej przez u\u017cytkownika.", "localization_tags": ["inprogress"], "locale": "pl", "last_edit": "2015-04-20T07:34:33", "review_tags": []}, {"title": "Math.random()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Math/random", "tags": ["Reference", "JavaScript", "R\u00e9f\u00e9rence", "Math", "Method"], "summary": "La fonction Math.random()
renvoie un nombre flottant pseudo-al\u00e9atoire compris dans l'intervalle [0, 1)
(ce qui signifie que 0 est compris dans l'intervalle mais que 1 en est exclu). Ce nombre peut ensuite \u00eatre multipli\u00e9 afin de couvrir un autre intervalle. La graine (seed) du g\u00e9n\u00e9rateur est choisie par l'algorithme et ne peut pas \u00eatre choisie ou r\u00e9initialis\u00e9e par l'utilisateur.", "localization_tags": [], "locale": "fr", "last_edit": "2015-06-09T11:48:14", "review_tags": []}, {"title": "Math.random()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Math/random", "tags": ["Math", "Math Methods", "JavaScript"], "summary": "[0,1) \u3001\u2026\u2026\u3064\u307e\u308a\u30010 \u4ee5\u4e0a 1 \u672a\u6e80\u306e\u7bc4\u56f2\u3067\u7591\u4f3c\u4e71\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002Java \u3068\u540c\u69d8\u306b\u3001\u73fe\u5728\u6642\u523b\u3092\u30b7\u30fc\u30c9\u3068\u3057\u3066\u4e71\u6570\u3092\u751f\u6210\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-13T00:55:55", "review_tags": []}, {"title": "Math.random()", "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/random", "tags": [], "summary": "Math.random()
\u00a0\u51fd\u6570\u8fd4\u56de [0-1) \u7684\u6d6e\u70b9\u503c\u4f2a\u968f\u673a\u6570\uff08\u5927\u4e8e\u7b49\u4e8e0\uff0c\u5c0f\u4e8e1\uff09\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2014-07-25T07:15:42", "review_tags": []}, {"title": "Math.random()", "url": "/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Math/random", "tags": ["Math", "Method", "JavaScript"], "summary": "A fun\u00e7\u00e3o \u00a0Math.random()
\u00a0retorna um ponto de flutua\u00e7\u00e3o (floating-point), n\u00fameros pseudo-aleat\u00f3rios em uma varia\u00e7\u00e3o [0, 1)
\u00a0ou seja, de 0 (inclusivo) at\u00e9, mas n\u00e3o incluindo, 1 (exclusivo), que depois voc\u00ea pode dimensionar para a sua varia\u00e7\u00e3o desejada.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2014-12-13T01:14:54", "review_tags": []}, {"title": "Math.random()", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Math/random", "tags": ["Reference", "JavaScript", "R\u00e9f\u00e9rence", "Math", "Method"], "summary": "\u041c\u0435\u0442\u043e\u0434 Math.random()
\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0438\u0437 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 [0,\u00a01)
, \u0442\u043e \u0435\u0441\u0442\u044c, \u043e\u0442 0 (\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0434\u043e 1 (\u043d\u043e \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044f 1), \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u0442\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u0435\u0440\u043d\u043e \u0434\u043b\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b; \u043e\u043d\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u0441\u0431\u0440\u043e\u0448\u0435\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c.", "localization_tags": [], "locale": "ru", "last_edit": "2015-05-06T04:00:49", "review_tags": []}, {"title": "Math.random()", "url": "/de/docs/Web/JavaScript/Reference/Global_Objects/Math/math.random", "tags": ["Gleitkomma", "Zahl", "Zufall", "Pseudo", "echt", "Sicherheit", "Skalieren"], "summary": "Die Math.random()
Funktion gibt eine Pseudozufallszahl in Form einer Gleitkommazahl im Bereich von (inklusive) 0 bis (exklusive) 1 zur\u00fcck, die dann zur gew\u00fcnschten Gr\u00f6\u00dfe skaliert werden kann. Die Zufallszahl wird von der Implementierung bestimmt; sie kann nicht vom Benutzer ausgew\u00e4hlt oder zur\u00fcckgesetzt werden.", "localization_tags": ["inprogress"], "locale": "de", "last_edit": "2015-05-24T18:25:20", "review_tags": []}], "modified": "2015-07-09T02:49:43", "label": "Math.random()", "localization_tags": [], "url": "/es/docs/Web/JavaScript/Referencia/Objetos_globales/Math/random", "last_edit": "2015-07-09T02:49:39", "summary": "La funci\u00f3n\u00a0Math.random()
\u00a0retorna\u00a0un\u00a0punto flotante,\u00a0un n\u00famero\u00a0pseudo-aleatorio\u00a0dentro del rango\u00a0[0,\u00a01).
\u00a0Esto es, desde el\u00a00 (Incluido) hasta el 1 pero sin incluirlo\u00a0(excluido), el cual se puede escalar hasta el rango deseado. La implementaci\u00f3n selecciona la semilla inicial hasta el algoritmo que genera el n\u00famero aleatorio; este no puede ser elegido\u00a0o cambiado por el usuario.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Summary", "title": "Sumario"}, {"id": "Syntax", "title": "Sintaxis"}, {"id": "Parameters", "title": "Par\u00e1metros"}, {"id": "Examples", "title": "Ejemplos"}, {"id": "Example:_Using_Math.random", "title": "Ejemplo: Usando\u00a0"}, {"id": "Specifications", "title": "Especificaciones"}, {"id": "Browser_compatibility", "title": "Compatibilidad en navegadores"}], "id": 144351, "review_tags": ["technical"]}