当前位置:网站首页>GKARC4RandomSource
GKARC4RandomSource
2022-07-28 10:18:00 【monsterk1】
GKARC4RandomSource
一个基础的ARC4算法随机数发生器,运用于绝大部分的游戏机制,
概括
重要
GameplayKit中提供的随机化服务适用于可靠地创建确定性的伪随机游戏机制,但不具备加密性。对于加密,混淆或密码使用,请使用描述“加密指南”的Security框架。要使用此随机源生成基本随机值,请使用GKRandom协议中定义的方法。 要生成具有特定范围和分布的随机值,请使用该随机源与GKRandomDistribution类或其子类之一。
当你创建此类的实例时,生成的随机源是独立的和确定性的,也就是说,一个实例生成的数字序列对任何其他实例生成的序列没有影响,并且该序列可以在必要时复制。 有关复制序列的详细信息,请参阅seed属性和initWithSeed: 初始化方法。
注意
GKARC4RandomSource随机源类使用类似的算法,但独立于arc4random系列的C函数。
Topics
创建随机源(Creating a Random Source)
- init
- initWithSeed:
复制随机行为(Replicating Random Behavior)
seed
避免可预测的行为(Avoiding Predictable Behavior)
- dropValuesWithCount:
关系
继承
GKRandomSource
边栏推荐
- Deadlock algorithm: banker algorithm and security algorithm
- 中兴通讯总裁徐子阳:5nm芯片将在2021年推出
- 20200229 training match L1 - 2 delete the substring in the string (20 points)
- SQL Server 2016 learning records - connection query
- Huawei takes a 10% stake in fullerene technology, a graphene material manufacturer
- Uni app project directory, file function introduction and development specification
- Ueeditor v1.4.3 control file compression
- Ie compatibility problem handling
- gcc: error trying to exec 'as': execvp: No such file or directory
- 用两个栈实现一个队列【C语言】
猜你喜欢

Get to know SuperMap idesktop for the first time

Machine learning -- handwritten English alphabet 1 -- classification process

利用正则表达式从文件路径中匹配文件名

6. Double pointer -- the sum of the two numbers of the incremental array is equal to the target number

7、MapReduce自定义排序实现

机器人技术(RoboCup 2D)如何进行一场球赛

SDUT Round 9 2020 Spring Festival campaign

Idea create my first project

C语言 二级指针详解及示例代码

第一篇:UniAPP的小程序跨端开发-----创建uniapp项目
随机推荐
8. Numbers that appear more than half of the time in the array
AP Autosar平台设计 1-2 导言、技术范围与方法
Codeforces Round #614 (Div. 2) A. ConneR and the A.R.C. Markland-N
ACM winter vacation training 4
中兴通讯:5nm 5G基站芯片正在技术导入!
20200229训练赛 L1 - 2 删除字符串中的子串 (20分)
最短路专题
【栈的应用】--- 中缀表达式转后缀表达式
Idea packages jar packages and runs jar package commands
Can kingbasees v8r6 JDBC use VIP?
发力大核、独显!英众科技2020十代酷睿独显产品发布
问题总结档案
Codeforces Round #614 (Div. 2) B. JOE is on TV!
Lucene 查询语法备忘
Install mysql5.7 under centos7
IDEA打包jar包及运行jar包命令
SQL Server 2016 learning records - connection query
QT generation Exe file and run without QT environment (enigma virtual box for green executable software packaging) graphic tutorial
Differences among pipes, pipe passes and pipe States
印度计划禁用中国电信设备!真离得开华为、中兴?