A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://reference.wolfram.com/language/ref/RandomInteger.html below:

RandomInteger—Wolfram Language Documentation

WOLFRAM Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technology expertise.

WolframConsulting.com

BUILT-IN SYMBOL

RandomInteger[{imin,imax}]

gives a pseudorandom integer in the range {imin,imax}.

RandomInteger[imax]

gives a pseudorandom integer in the range {0,,imax}.

RandomInteger[range,{n1,n2,}]

gives an n1×n2× array of pseudorandom integers.

Examplesopen allclose all Basic Examples  (5)

A random integer in the range 1 through 10:

A random integer in the range 0 through 3:

A random choice of 0 or 1:

Twenty random integers in the range 0 through 5:

A 3×4 random array of 0s and 1s:

Scope  (1)

Generate random integers of any size:

Applications  (4)

A cellular automaton with random initial conditions:

Random circles at integer positions:

Random array of black and white cells:

Count how many pairs of random integers between 1 and a million are relatively prime:

Properties & Relations  (3) Neat Examples  (1)

A randomly filled cubic lattice:

Wolfram Research (2007), RandomInteger, Wolfram Language function, https://reference.wolfram.com/language/ref/RandomInteger.html. Text

Wolfram Research (2007), RandomInteger, Wolfram Language function, https://reference.wolfram.com/language/ref/RandomInteger.html.

CMS

Wolfram Language. 2007. "RandomInteger." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RandomInteger.html.

APA

Wolfram Language. (2007). RandomInteger. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RandomInteger.html

BibTeX

@misc{reference.wolfram_2025_randominteger, author="Wolfram Research", title="{RandomInteger}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/RandomInteger.html}", note=[Accessed: 12-July-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_randominteger, organization={Wolfram Research}, title={RandomInteger}, year={2007}, url={https://reference.wolfram.com/language/ref/RandomInteger.html}, note=[Accessed: 12-July-2025 ]}


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4