判定随机数是大于还是小于给定阈值的计算机实现的方法

By comparing the random number and the bit sequence of the threshold bit by bit, the problem of high computational resource consumption in the existing technology is solved, and an efficient method for determining random numbers is realized, which is applicable to fields such as numerical simulation and encryption.

CN115039068BActive Publication Date: 2026-07-17QUSIDE TECH SL +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
QUSIDE TECH SL
Filing Date
2021-01-28
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing technologies require significant computational resources to determine whether a random number is greater than or less than a given threshold, especially for long random numbers, resulting in low computational efficiency.

Method used

By representing random numbers and thresholds as bit sequences and comparing them bit by bit using a comparator, the relationship between random numbers and thresholds is determined bit by bit, reducing the computational resources and time required for the determination.

Benefits of technology

It significantly reduces the time and computational resource requirements for determining whether a random number is greater than or less than a threshold, and improves the efficiency of processing large numbers of random numbers, especially in numerical simulation and encryption applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115039068B_ABST
    Figure CN115039068B_ABST
Patent Text Reader

Abstract

一种用于判定随机数是大于还是小于给定阈值的计算机实现的方法,该方法包括:将随机数和阈值表示为位序列并且通过比较器在逐位基础上将表示随机数的位序列与表示阈值的位序列进行比较,其中,比较开始于将表示随机数的位序列的最高有效位与表示阈值的最高有效位序列进行比较;以及如果位不相等,则判定随机数大于或小于阈值,而如果位相等,则将表示随机数的位序列中的紧接的后一位与表示阈值的位序列中的紧接的后一位进行比较,其中,此比较被重复直到达到在表示随机数的位序列和表示阈值的位序列中不相等的第一位或者直到所有位都已被比较并且发现为相等。
Need to check novelty before this filing date? Find Prior Art