Solution: There is two Alexs! A zombie one who takes over, and the smooth talking one trying to fight the zombie off duh'... I support both, great tutorials either way!
@mrbeantje1 I don't suggest using that conditional. It may cause unnecessary hang ups in your script. Try this: generate a random number between 0 and 90. If its less than 45, multiply by 2. If its greater than 45, multiply by 4. Otherwise (its eqaul to 45), add 1 and multiply by 4 or possibly regenerate. This will only generate even numbers though...I'm trying to think of ways that only require one generation.
@mrbeantje1 I can think of two ways, generate two random numbers one from 0 to 90 and one from 180 to 360 and then randomly choose on of the two numbers. Another way would be to use a while loop to keep creating random numbers until it is not in the range of 90 to 180.
I think he done so many tutorials that he lost his voice that why he sound different
nimm17 3 months ago in playlist Beginner PHP Tutorials Playlist
Solution: There is two Alexs! A zombie one who takes over, and the smooth talking one trying to fight the zombie off duh'... I support both, great tutorials either way!
TehLazySloth 4 months ago in playlist Beginner PHP Tutorials Playlist 7
So... what is it? Do you have this voice only in the morning? Or are you ill again?
One time your voice sounds like walking on an old stair and the other time you sounds quite smooth. Coincidence? XD
aljodewi 4 months ago
1:05 "max mamomouth... minamamouth" XD
9FADETOBLACK9 9 months ago 4
can u put an object in the rand function arguments...
e.g.
$array
rand($array)
youdripblood 9 months ago
I have one little question:
What if i want to have an number between 0 and 360
Without 90 to 180
so 91,92,93,94.....180 cant be the number
how can i do that?
mrbeantje1 9 months ago
@mrbeantje1
after generating the number check if it is 90 or 180. If its true just new generate it
templerthelast 9 months ago
@mrbeantje1 I don't suggest using that conditional. It may cause unnecessary hang ups in your script. Try this: generate a random number between 0 and 90. If its less than 45, multiply by 2. If its greater than 45, multiply by 4. Otherwise (its eqaul to 45), add 1 and multiply by 4 or possibly regenerate. This will only generate even numbers though...I'm trying to think of ways that only require one generation.
Paintballbeast09 9 months ago
@mrbeantje1 I can think of two ways, generate two random numbers one from 0 to 90 and one from 180 to 360 and then randomly choose on of the two numbers. Another way would be to use a while loop to keep creating random numbers until it is not in the range of 90 to 180.
FrostMan242 9 months ago