gpt4 book ai didi

algorithm - 如何获得真正的随机数?

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:50:46 24 4
gpt4 key购买 nike

<分区>

Possible Duplicates:
Understanding “randomness”
Fastest implementation of a true random number generator in C#

你好。功能:

Random rand = new Random();
rand.Next()

它根据以秒为单位的时间给出伪随机数。如何获得真正的随机数?我的意思是完全随机而不是基于系统时间和一些算法。就像,当你放下一个立方体时,你会得到真正的随机数,而不是基于时间和任何算法。

您如何看待使用来自麦克风的短样本或鼠标位置变化之间的时间?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com