Cross-platform transformation method for pseudo random number generator in FTS random algorithm
A pseudo-random number and random algorithm technology, applied in the field of random selection, can solve problems such as difficulty in ensuring consistent principles and consistency in program operation results
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 2
[0024] Example 2: Take the weights corresponding to User0–User7 to form a Merkle tree, and the random seed is 100 as an example:
[0025] S1: Compile the weights corresponding to User0–User7 into a Merkle tree, in the form that the weight of non-leaf nodes is the sum of the weights of the left and right subtrees, and the weight of leaf nodes is the equity value of a certain User;
[0026] S2: Starting from the root node of the above merkle tree, use the random seed as the random source, use the pseudo-random number generator to generate a random number less than the weight of the current tree node, if the random number is less than the weight of the left subtree, select the left subtree Continue traversing, otherwise select the right subtree and continue traversing until a certain leaf node is selected;
[0027] S3: Use the random seed 100 as the initialization seed of the pseudo-random number generator, take the java code as an example, use the code Random rng=new Random(100)...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com