{"json_modified": "2015-04-20T07:57:15.119113", "slug": "Web/JavaScript/Referencje/Obiekty/Math/random", "tags": ["Math", "Method", "JavaScript"], "locale": "pl", "title": "Math.random()", "translations": [{"title": "Math.random()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random", "tags": ["R\u00e9f\u00e9rence", "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-02-06T03:10:37", "review_tags": []}, {"title": "Math.random()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Math/random", "tags": ["R\u00e9f\u00e9rence", "Reference", "Method", "Math", "JavaScript"], "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-02-07T06:09:15", "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": ["R\u00e9f\u00e9rence", "Reference", "Method", "Math", "JavaScript"], "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\u0441\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-02-06T03:18:47", "review_tags": []}, {"title": "Math.random()", "url": "/es/docs/Web/JavaScript/Referencia/Objetos_globales/Math/random", "tags": [], "summary": "La funci\u00f3n\u00a0Math.random()
\u00a0retorna\u00a0un\u00a0punto flotante,\u00a0un pseudo-aleatorio\u00a0n\u00famero\u00a0dentro del rango\u00a0[0,\u00a01).
\u00a0Esto es, desde el\u00a00 (inclusive) hasta el uno pero sin incluirlo\u00a0(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": ["inprogress"], "locale": "es", "last_edit": "2015-03-03T09:11:57", "review_tags": []}], "modified": "2015-04-20T07:57:13", "label": "Math.random()", "localization_tags": ["inprogress"], "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Math/random", "last_edit": "2015-04-20T07:34:33", "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.", "sections": [{"id": "Quick_Links", "title": "Obiekty Math W\u0142asno\u015bci Math.E Math.LN10 Math.LN2 Math.LOG10E Math.LOG2E Math.PI Math.SQRT1 2 Math.SQRT2 Metody Math.abs() Math.acos() Math.acosh() [Translate] Math.asin() Math.asinh() [Translate] Math.atan() Math.atan2() Math.atanh() [Translate] Math.cbrt() [Translate] Math.ceil() Math.clz32() [Translate] Math.cos() Math.cosh() [Translate] Math.exp() Math.expm1() [Translate] Math.floor() Math.fround() [Translate] Math.hypot() [Translate] Math.imul() [Translate] Math.log() Math.log10() [Translate] Math.log1p() [Translate] Math.log2() [Translate] Math.max() Math.min() Math.pow() Math.random() Math.round() Math.sign() Math.sin() Math.sinh() [Translate] Math.sqrt() Math.tan() Math.tanh() [Translate] Math.trunc() [Translate] Inheritance: Object W\u0142asno\u015bci Object.prototype.__count__ [Translate] Object.prototype.__noSuchMethod__ [Translate] Object.prototype.__parent__ [Translate] Object.prototype.__proto__ [Translate] Object.prototype.constructor Metody Object.prototype.__defineGetter__() [Translate] Object.prototype.__defineSetter__() [Translate] Object.prototype.__lookupGetter__() [Translate] Object.prototype.__lookupSetter__() [Translate] Object.prototype.hasOwnProperty() [Translate] Object.prototype.isPrototypeOf() [Translate] Object.prototype.propertyIsEnumerable() [Translate] Object.prototype.toLocaleString() Object.prototype.toSource() Object.prototype.toString() Object.prototype.unwatch() Object.prototype.valueOf() Object.prototype.watch()"}, {"id": "Podsumowanie", "title": "Podsumowanie"}, {"id": "Sk.C5.82adnia", "title": "Sk\u0142adnia"}, {"id": "Parametry", "title": "Parametry"}, {"id": "Przyk.C5.82ady", "title": "Przyk\u0142ady"}, {"id": "Przyk.C5.82ad:_Zastosowanie_Math.random", "title": "Przyk\u0142ad: Zastosowanie Math.random()"}], "id": 37699, "review_tags": []}