![Photo](https://secure.gravatar.com/avatar/d5dc1566ca2751d562fb847be20bf5d3?s=100&d=https%3A%2F%2Fcommunity.casiocalc.org%2Fdot%2Fpublic%2Fstyle_images%2Fmaster%2Fprofile%2Fdefault_large.png)
Seeding A Casiofx9860Gii
#1
Posted 07 November 2012 - 02:18 AM
#2
Posted 07 November 2012 - 01:18 PM
#3
Posted 07 November 2012 - 08:49 PM
pinapple: a quick search through the the manual shows nothing on seeding. You could try implementing your own and calling that whenever you need a random number, but I don't see any other way... :l
#4
Posted 08 November 2012 - 01:58 AM
#5
Posted 08 November 2012 - 02:35 AM
#6
Posted 08 November 2012 - 04:17 PM
Meanwhile manually copy the random numbers from your friend's TI to make sure you have the same random numbers.
#7
Posted 09 November 2012 - 02:37 AM
#8
Posted 09 November 2012 - 03:21 AM
Thanks for all the suggestions so far and I don't want to sound ungrateful or anything but I think you guys are overthinking this. In class the students with TI's use the following commands to seed their calculators: They put the line number ,like 5, then they input STORE, and finally they input Randint and then the calculator is seeded. I assume that there should be a similar command for my far superior Casio.
Yes, because this functionality is supported in the TI-83. It is not in the fx. Please understand this.
#9
Posted 09 November 2012 - 12:42 PM
You could make a BASIC prog to do that like this:
Locate 1,1,List 1[RandInt(1,Dim List1)]
You could put the numbers into list one and then that would return one.
It could all be done from the homescreen, too.
You would do this (linear mode):
{1,2,3,4,5} -> List 1 // (numbers to be seeded) Prog "SEED" //name of seeding program
That would give you the number right in the graph screen.
#10
Posted 10 November 2012 - 11:34 PM
So there is a list and the calc randomly chooses a number from the list?
You could make a BASIC prog to do that like this:Locate 1,1,List 1[RandInt(1,Dim List1)]
You could put the numbers into list one and then that would return one.
It could all be done from the homescreen, too.
You would do this (linear mode):{1,2,3,4,5} -> List 1 // (numbers to be seeded) Prog "SEED" //name of seeding program
That would give you the number right in the graph screen.
Nooooo...
The idea is that there is a function that takes a seed and outputs a number. You start with a non-random seed, and feed that in toget the first 'random' number. For a given seed, the same number will always be outputted . To get the next number in the series, take the previous random number and use it as a seed. Note that the output of the rng is usually larger than the output to the user. After a while, the rng will end up with the first number being produced. The amount of time it takes to do this is called the Period of the rng.
To demonstrate, here's a very simple rng with a period of 4 in pseudocode.
static nibble seed= 0x3 //0011 bit random(){ seed = seed << 1; //This shifts the seed over 1 bit, wrapping return seed >>> 3; //This shifts the seed over 3 bits, nonwrapping. This essentially selects the leftmost bit. }
Lets run the following code:
println(random()); println(random());
Initially, seed=0101. On the first line of random(), seed gets set to 0110. The return value is the leftmost bit, or 0. The next time random() is run, seed gets changed to 1100. The leftmost bit this time is 1. There are a couple problems with this rng, including a very low period, high dependance of starting value of the seed, and low length of output, but it is good for an example.
#11
Posted 10 November 2012 - 11:51 PM
#12
Posted 11 November 2012 - 12:58 AM
#13
Posted 11 November 2012 - 03:45 AM
Also tagged with one or more of these keywords: casiofx, 9860GII, seeding, randint, probability, prob and stat
Programming →
General Help →
Everything A Beginner needs in 2017Started by JTurtle , 02 Dec 2017 ![]() |
|
![]()
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users