首页> 外国专利> Apparatus and method for converting random binary sequence into random integer

Apparatus and method for converting random binary sequence into random integer

机译:用于将随机二进制序列转换为随机整数的设备和方法

摘要

An apparatus and method for converting a random binary sequence into a random integer is provided. The present invention converts a random binary sequence into a random integer, and determines whether the corresponding random integer falls within a preset integer interval. Further, if it is determined that the random integer generated from the random binary sequence does not fall within the preset integer interval, the present invention repeatedly updates a random binary sequence until a random integer falling within the corresponding integer interval is obtained, thus outputting uniformly distributed random integers which fall within the preset integer interval.
机译:提供了一种用于将随机二进制序列转换为随机整数的设备和方法。本发明将随机二进制序列转换为随机整数,并确定对应的随机整数是否落在预设整数区间内。此外,如果确定从随机二进制序列生成的随机整数不落入预设整数区间内,则本发明重复更新随机二进制序列,直到获得落入对应整数区间内的随机整数,从而均匀地输出分布在预设整数间隔内的随机整数。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号