Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Random numbers across different programming languages

Tags:

random

If I use the Random number generator function in different programming languages and I chose the same seed .. Do they have to give me the same random numbers ?

for example I used Java and Perl ... gave different numbers.

like image 520
Morano88 Avatar asked Feb 10 '26 20:02

Morano88


1 Answers

No, unless the two languages happen to use the same algorithm.

like image 148
SLaks Avatar answered Feb 17 '26 23:02

SLaks