0
What is the mean by pseudo code ?
6 odpowiedzi
+ 3
Ok so whenever I think of pseudo codes, I think of this.
If you want to find exponentials, like 2^3. In JavaScript, you would do something traditional like,
function myFunc(base, exponent) {
var num = 1 ;
for (var i = 0; i < exponent; i++) {
num *= base
}
return num
}
Fortunately, you don't have to make your own tedious and long function because you have Math.pow(2, 3). <- This is pseudo.
+ 2
In programming terms pseudo code is used to explain a piece of code that is not specified to a particular language.
+ 1
Based off a video I watched,
Pseudo random number generator is when you take a number, square it, and get the middle numbers, then take these middle numbers, and square them, then take the middle numbers from the result, and so on, but this sequence will eventually reset, the time it takes to reset is called the period. When it resets, it will produce the same sequence all over again.
There.
+ 1
From what you have written a pseudo random number is different to my understanding. Which is that pseudo code, is a notation resembling a simplified programming language, used in program design. I do believe you have mixed them up.
i.e.
1. a pseudo random number generator
2. notation resembling a simplified programming language
0
but what is the work of it in programing?
0
I don't even know ... I saw that in a comment.. so I just asked u ... t