Skip to main content

Featured

Best AI tools for students

Top 3 AI tools for Student  The biggest problem facing students in an information-rich environment is not access, but effective learning. A new generation of Artificial Intelligence (AI) tools is achieving previously unheard-of levels of efficiency, even while tools like interactive simulations and 3D models (like PhET or BioDigital) have made difficult subjects visual. AI is entering the classroom to help with anything from creating personalized study materials to giving prompt, focused feedback on tasks. AI is a co-pilot for the student trip, freeing up cognitive space for more in-depth critical thinking and creative work. We are getting past the basic calculator example. Here are some key AI resources that all students should be aware of and use in order to thrive in the contemporary world. 1. Human Bio Digital Explore the Inner Workings of the Human Body in 3D! Have you ever wished you could peel back the layers and truly see how your body—or a specific medical condition—actual...

Generating Random Number from Javascript

Hello guys, after reading this blog you will know how you can generate a random number through JavaScript

We can generate the random number through Math.random() function but this gives us number in decimal.
So we should write the Math.random()  * 10 inside the Math.floor to get a integer number not a decimal number from 0 to 10 (10 not included); In JavaScript Math is a object that helps you to do mathematical operations. And Math.floor() is a function that round offs the number and return a integer.


We can use different places where we have to make choosing from the computer. For example one array is there, from that array we have to make computer choose a array item.

Here's one code which help you in understanding 

arr = ["Rock", "Papper", "Scissor"]
random_num = Math.floor(Math.random() * arr.length)
alert(arr[random_num])

Comments

Popular Posts