Question about Casio Office Equipment & Supplies

# How do I generate random integers on the casio fx cg50 without having repeats? Also how do I generate another set of numbers without having repeats from the previous list.

Posted by on

### k24674

The random number generator function is called Ran# and can be accessed in RUN mode by pressing:
[OPTN] [F6] [F3] (PROB) [F4] to access the (Ran#) function
In the paragraph above, the bold text in square brackets indicates key presses, while the text in parentheses represents the menus that appear at the bottom of the calculator screen. This also assumes there are no menus on the bottom of the screen when you begin. If PROB is already on the screen, then the [F6] key is not necessary, just press [F3] then [F4] at this point.

The Ran# function generates a random decimal number between 0 and 1. If you need to generate a number with a higher range, then there may be extra steps involved. For example, to choose a random number between 0 and 100, you would enter:
Ran#×100 or Ran#(100)

Let's say you want to simulate a dice roll, where you get an integer between 1 and 6. Your first step would be to do:
Ran#×6
This will give you a random decimal number between 0 and 6. But we need an integer, not a decimal. To make it an integer, you would change this to:
Int(Ran#×6)

Press [OPTN] [F6] [F4] (NUM) [F2] to access the (Int)

This now gives you an integer between 0 and 5. We just need to add 1 to the result.
Int(Ran#×6)+1
The result should be an integer between 1 and 6.

Posted on Jul 25, 2010

### k24674

The following uses keystrokes and screen captures from the FX-9750GII but the essential information is the same. Use the F6 key to move to next page of TABS (those at the bottom of screen) until you find the TAB that interests you (PROB, RAND#, INT, etc.)

The random number generator function is called Ran# and can be accessed in RUN mode by pressing:
[OPTN] [F6] [F3] (PROB) [F4] to access the (Ran#) function
In the paragraph above, the bold text in square brackets indicates key presses, while the text in parentheses represents the menus that appear at the bottom of the calculator screen. This also assumes there are no menus on the bottom of the screen when you begin. If PROB is already on the screen, then the [F6] key is not necessary, just press [F3] then [F4] at this point.

The Ran# function generates a random decimal number between 0 and 1. If you need to generate a number with a higher range, then there may be extra steps involved. For example, to choose a random number between 0 and 100, you would enter:
Ran#×100 or Ran#(100)

Let's say you want to simulate a dice roll, where you get an integer between 1 and 6. Your first step would be to do:
Ran#×6
This will give you a random decimal number between 0 and 6. But we need an integer, not a decimal. To make it an integer, you would change this to:
Int(Ran#×6)

Press [OPTN] [F6] [F4] (NUM) [F2] to access the (Int)

This now gives you an integer between 0 and 5. We just need to add 1 to the result.
Int(Ran#×6)+1
The result should be an integer between 1 and 6.

Posted on Jul 25, 2010

### kakima

SOURCE: how do i generate random

Use the rand() function. If you give it a positive integer argument n, it will return a random integer in the range in the interval [1, n]. You'll find rand() in the MATH/PROBABILITY menu.

Posted on Dec 08, 2010

### kakima

SOURCE: How do I generate a

The random number function always generates a number between zero and one. You can convert this to a random number in any range by a suitable combination of multiplications and additions. For example, if you want a random number between zero and ten, multiply the generated random number by 10. If you want a random number between one and ten, multiply the generated random number by 9 and then add 1.

If you want to simulate the roll of a six-sided die, multiply the generated random number by 6, add 1, and ignore the fractional portion. This will give you a 1, 2, 3, 4, 5, or 6 with more-or-less equal probability.

Posted on Mar 10, 2011

### Phil

Use the random number function, RAN#
Manual: http://support.casio.com/pdf/004/fx-82ES_83ES.etc_Eng.pdf

Posted on Mar 25, 2011

×

my-video-file.mp4

×

## Related Questions:

### Use RAN# button to gnerate random numbers

The RAN# button generates a random number between 0 and 1.If you want to flip a coin, see whether the generated random number is less than 0.5. Alternatively, multiply by 2 and see whether the integer portion is 0 or 1.If you want to flip a die, multiply the generated random number by 6, add 1, and ignore the fractional portion. This will give you a number in the range 1 through 6. A similar method will allow you to generate random numbers in any range.

Apr 16, 2012 | Casio FX-55 Calculator

### How do I generate a random number that is greater than 1 on a casio fx-300MS

The random number function always generates a number between zero and one. You can convert this to a random number in any range by a suitable combination of multiplications and additions. For example, if you want a random number between zero and ten, multiply the generated random number by 10. If you want a random number between one and ten, multiply the generated random number by 9 and then add 1.

If you want to simulate the roll of a six-sided die, multiply the generated random number by 6, add 1, and ignore the fractional portion. This will give you a 1, 2, 3, 4, 5, or 6 with more-or-less equal probability.

Mar 10, 2011 | Casio FX-300MS Calculator

### CASIO fx-115ES I need to calculate and fnd a modulus remainder.I need to divide the number 352 by the number 91 and find the remainder. I need to use the modulus operator. Can this calculator perform...

The fx-115ES does not have a key for the modulus operation. Nor does it have an integer-part or fractional-part operation. However, it is possible to calculate the remainder using integer arithmetic.

Press MODE 4 to shift into integer mode. Then type in 3 5 2 - 9 1 * ( 3 5 2 / 9 1 ) = and see the answer 79. It's a pain as both numbers have to be entered twice, but it does get the job done.

To get back to working with real numbers again, press MODE 1 ( or MODE 2 for complex).

Feb 26, 2011 | Casio FX-115ES Scientific Calculator

### How do I program the calculator to read random numbers 1-50?

The post answer the question concerning how to generate random integers. The example given is for rolling a dice. I am inserting the modification that treats your case at the end.

The random number generator function is called Ran# and can be accessed in RUN mode by pressing:
[OPTN] [F6] [F3] (PROB) [F4] to access the (Ran#) function
In the paragraph above, the bold text in square brackets indicates keypresses, while the text in parentheses represents the menus that appear at the bottom of the calculator screen. This also assumes there are no menus on the bottom of the screen when you begin. If PROB is already on the screen, then the [F6] key is not necessary, just press [F3] then [F4] at this point.

The Ran# function generates a random decimal number between 0 and 1. If you need to generate a number with a higher range, then there may be extra steps involved. For example, to choose a random number between 0 and 100, you would enter:
Ran#×100 or Ran#(100)

Let's say you want to simulate a dice roll, where you get an integer between 1 and 6. Your first step would be to do:
Ran#×6
This will give you a random decimal number between 0 and 6. But we need an integer, not a decimal. To make it an integer, you would change this to:
Int(Ran#×6)

Press [OPTN] [F6] [F4] (NUM) [F2] to access the (Int)

This now gives you an integer between 0 and 5. We just need to add 1 to the result.
Int(Ran#×6)+1
The result should be an integer between 1 and 6.

To generate random number between 1 and 50
Int(Ran#×50)+1

Jul 16, 2010 | Casio FX-115ES Scientific Calculator

### How do i generate random numbers on the casio fx-9860G

The random number generator function is called Ran# and can be accessed in RUN mode by pressing:
[OPTN] [F6] [F3] (PROB) [F4] to access the (Ran#) function
In the paragraph above, the bold text in square brackets indicates key presses, while the text in parentheses represents the menus that appear at the bottom of the calculator screen. This also assumes there are no menus on the bottom of the screen when you begin. If PROB is already on the screen, then the [F6] key is not necessary, just press [F3] then [F4] at this point.

The Ran# function generates a random decimal number between 0 and 1. If you need to generate a number with a higher range, then there may be extra steps involved. For example, to choose a random number between 0 and 100, you would enter:
Ran#×100 or Ran#(100)

Let's say you want to simulate a dice roll, where you get an integer between 1 and 6. Your first step would be to do:
Ran#×6
This will give you a random decimal number between 0 and 6. But we need an integer, not a decimal. To make it an integer, you would change this to:
Int(Ran#×6)

Press [OPTN] [F6] [F4] (NUM) [F2] to access the (Int)

This now gives you an integer between 0 and 5. We just need to add 1 to the result.
Int(Ran#×6)+1
The result should be an integer between 1 and 6.

Jul 06, 2010 | Casio CFX-9850G Plus Calculator

### I have a casio fx9750GA plus and need to know how to generate random numbers. I have had a quick look at users manual but can't find it. Can you help?

The following uses keystrokes and screen captures from the FX-9750GII but the essential information is the same. Use the F6 key to move to next page of TABS (those at the bottom of screen) until you find the TAB that interests you (PROB, RAND#, INT, etc.)

The random number generator function is called Ran# and can be accessed in RUN mode by pressing:
[OPTN] [F6] [F3] (PROB) [F4] to access the (Ran#) function
In the paragraph above, the bold text in square brackets indicates key presses, while the text in parentheses represents the menus that appear at the bottom of the calculator screen. This also assumes there are no menus on the bottom of the screen when you begin. If PROB is already on the screen, then the [F6] key is not necessary, just press [F3] then [F4] at this point.

The Ran# function generates a random decimal number between 0 and 1. If you need to generate a number with a higher range, then there may be extra steps involved. For example, to choose a random number between 0 and 100, you would enter:
Ran#×100 or Ran#(100)

Let's say you want to simulate a dice roll, where you get an integer between 1 and 6. Your first step would be to do:
Ran#×6
This will give you a random decimal number between 0 and 6. But we need an integer, not a decimal. To make it an integer, you would change this to:
Int(Ran#×6)

Press [OPTN] [F6] [F4] (NUM) [F2] to access the (Int)

This now gives you an integer between 0 and 5. We just need to add 1 to the result.
Int(Ran#×6)+1
The result should be an integer between 1 and 6.

May 21, 2010 | Casio CFX-9850G Plus Calculator

The random number generator function is called Ran# and can be accessed in RUN mode by pressing:
[OPTN] [F6] [F3] (PROB) [F4] to access the (Ran#) function
In the paragraph above, the bold text in square brackets indicates keypresses, while the text in parentheses represents the menus that appear at the bottom of the calculator screen. This also assumes there are no menus on the bottom of the screen when you begin. If PROB is already on the screen, then the [F6] key is not necessary, just press [F3] then [F4] at this point.

The Ran# function generates a random decimal number between 0 and 1. If you need to generate a number with a higher range, then there may be extra steps involved. For example, to choose a random number between 0 and 100, you would enter:
Ran#×100 or Ran#(100)

Let's say you want to simulate a dice roll, where you get an integer between 1 and 6. Your first step would be to do:
Ran#×6
This will give you a random decimal number between 0 and 6. But we need an integer, not a decimal. To make it an integer, you would change this to:
Int(Ran#×6)

Press [OPTN] [F6] [F4] (NUM) [F2] to access the (Int)

This now gives you an integer between 0 and 5. We just need to add 1 to the result.
Int(Ran#×6)+1
The result should be an integer between 1 and 6.

Mar 03, 2010 | Casio FX-9860G Graphic Calculator

### How to use the random number generator on the calculator.

Hello,
To access the Random number generator, press [MENU], Use arrows to select [RUN] and press [EXE].
In [RUN] press [OPTN][F6:->] to pan to the right then press [F3:PROB] then [F4:RAND#]. The command echoes on the screen.
1. Now if you press [EXE] a number between 0 and 1 is generated.
2. Each time you press [EXE] a new number is generated.
Although it is not documented, I found out that if you enter RAND#(n) where n is an integer, it generates a number between (0 and n)

Hope it helps.

Nov 07, 2009 | Casio FX-9750GPlus Calculator

### Ran#

A random number generator exists on this calculator. It is accessible in RUN or PGRM modes by pressing the OPTN key. If you don not see a tab PROB at the bottom of screen, press the rightmost key to move to next page.

Anyway, RAND# generates a real number between 0 and 1.

The Ran# function generates a random decimal number between 0 and 1. If you need to generate a number with a higher range, then there may be extra steps involved. For example, to choose a random number between 0 and 100, you would enter:
Ran#×100 or Ran#(100)

Let's say you want to simulate a dice roll, where you get an integer between 1 and 6. Your first step would be to do:
Ran#×6
This will give you a random decimal number between 0 and 6. But we need an integer, not a decimal. To make it an integer, you would change this to:
Int(Ran#×6)

[OPTN].......(NUM) [F2] to access the (Int)

This now gives you an integer between 0 and 5. We just need to add 1 to the result.
Int(Ran#×6)+1
The result should be an integer between 1 and 6.

Nov 07, 2009 | Casio FX-7400G Plus Calculator

## Open Questions:

#### Related Topics:

404 people viewed this question

Level 3 Expert

Level 3 Expert