Mathematica Q&A Series: Generating Random Numbers

3,818 views · Published 4 October 2011 · 2:46 · Indexed 24 October 2026

Channel: Wolfram · 2011 · Science & Technology

Watch on YouTube

Got questions about Mathematica? The Wolfram Blog has answers!

This week's question comes from Peter, a secondary school teacher:
How can I generate random integers between -10 and 10, but excluding 0?

This screencast has the answer. It's also detailed in the following Wolfram Blog post:
http://blog.wolfram.com/2011/10/05/mathematica-qa-series-generating-random-numbers

For more information about Mathematica, please visit: 
http://www.wolfram.com/mathematica

More from this channel