好词典

rand

UK /rænd/US /rænd/

词源

货币意义源自南非的Witwatersrand(威特沃特斯兰德),该地区以产金闻名;计算机术语是random(随机)的缩写。

noun

❶ 指南非的货币单位,相当于100分,类似于人民币中的元。主要用于南非及其周边国家。

“The price of the book is 50 rand.”

(这本书的价格是50兰特。)

“She exchanged dollars for rand at the airport.”

(她在机场将美元兑换成兰特。)

❶ 指计算机编程中生成的随机数,常用于模拟或测试场景。

“The program uses rand() to generate random numbers.”

(这个程序使用rand()函数生成随机数。)

“You can seed the rand function for reproducible results.”

(你可以为rand函数设置种子以获得可重复的结果。)

同义词:random number, currency, South African rand

常见短语

rand() function — 计算机编程中用来生成伪随机数的函数,常用于需要随机性的算法或程序中。

“The rand() function returns a value between 0 and RAND_MAX.”

(rand()函数返回一个介于0和RAND_MAX之间的值。)

South African rand — 南非的官方货币,缩写为ZAR,在南非及其周边国家流通使用。

“The South African rand is denoted by the symbol 'R'.”

(南非兰特的货币符号是'R'。)