你如何创建一个随机的64位数字?创建一个、数字

2023-09-08 00:37:55 作者:几分伤心几分痴

我有一个规范,需要我创建具有以下转换为字符串一个随机的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.

 
精彩推荐
图片推荐