Patent ID: 8351603

Claim:
A random number generating device comprising: a random number generator configured to have a plurality of random number generating elements that generate a random number through setting of reversal probability of magnetization to ½ due to a spin-injection phenomenon in response to supply of a spin-injection current, the random number generator making the random number generating element generate the random number by performing first writing of supplying the random number generating element with the spin-injection current that provides 1 as writing probability and sets a resistance value of the random number generating element to a first resistance value higher than a predetermined threshold, and performing first reading of reading out the resistance value of the random number generating element, and performing second writing of supplying the random number generating element with the spin-injection current that provides ½ as writing probability and sets the resistance value of the random number generating element to a second resistance value lower than the predetermined threshold if setting of the random number generating element to the first resistance value by the first writing is detected from the resistance value that is read out; and a temperature controller configured to obtain an environmental temperature of an environment under which the random number generating element generates a random number based on the resistance value of the random number generating element, read out by the first reading, and make magnitude of the spin-injection current be so changed as to follow the environmental temperature to make the random number generator perform the second writing.