你如何创建一个随机的 64 位数字? [英] How do you create a random 64 bit number?

查看:24
本文介绍了你如何创建一个随机的 64 位数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一部分规范要求我创建一个随机的 64 位数字,并将以下内容转换为字符串:(0 到 2^63 - 1)

I have part of a spec that requires me to create a random 64 bit number with the following converted to a character string : (0 to 2^63 - 1)

我不知道括号里的意思是什么,有人可以帮忙吗?

I have no idea what this means in the brackets, can anyone help?

推荐答案

括号是 0 到 2^63-1 之间的随机 64 位数字的集合生成器表示法,不包括 0 和 2^63-1.

The parenthesis is set-builder notation for a random 64 bit number between 0 and 2^63-1, not including 0 nor 2^63-1.

这篇关于你如何创建一个随机的 64 位数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆