CN103294447A

Method and device for generating random numbers

Abstract

The invention discloses a method and a device for generating random numbers and belongs to the field of computers. The method includes: acquiring sound of the external environment, converting the acquired sound into a first digital signal, and generating the random numbers according to the first digital signal. The device comprises a conversion module and a generation module. By the method and the device for generating the random numbers, cost for generating the random numbers can be reduced, and randomness of the generated random numbers can be improved.

Term

No projected expiry on record.

  1. Priority and filed
  2. Published
  3. Today

13 claims: 2 independent, 11 dependent

  1. 1
    generating a random number the method wherein said method comprises:Collecting external environment in the audio the gathered sound is converted into first digital signal;According to said first digital signal generating a random number. 1.一种生成随机数的方法,其特征在于,所述方法包括: 采集外界环境内的声音,将采集的声音转换为第一数字信号; 根据所述第一数字信号生成随机数。
  2. 7
    random number generating device wherein said device comprises:Conversion module is used for collecting external environment in the audio the gathered sound is converted into first digital signal;Generating module is used for according to said first digital signal generating a random number. 7.—种生成随机数的装置,其特征在于,所述装置包括: 转换模块,用于采集外界环境内的声音,将采集的声音转换为第一数字信号; 生成模块,用于根据所述第一数字信号生成随机数。