Useful tip of the day ✨
Here’s how to generate a random number within a range:
Math.floor(Math.random() * 10)
This will return a random number between 0 and 10.
Math.random() returns a number between 0 and 1 but never 1. Multiplying it by 10 means you get a number between 0 and 10. Since random() never returns 1 or more, you can not more than 10:
10 * 0.98 * 10 = 9.8
floor() rounds the number downwards so 9.8 is 9.
Useful advice from me to you :)
I shared earlier on Twitter today how much it feels nice to see yourself grow overtime in something
. I started YouTube last year March with very little skills when it comes to video creation. Fun fact: I actually recorded the 12mins first video
at a go…no breaks, no cuts while editing. Just looking at the screen and hoping not to make any mistakes so I don’t start again. I did almost 10 takes that day 😂. I had very little experience with videos but I started still.
The point here is–and this is not just for video creation, but life generally–don’t wait for perfection before starting that thing you want to start. Don’t wait till you have all the tools and all the experience before starting that time. Most of the time, you actually learn these things while you do it and make mistakes.
That’s it for this week.
I currently have an Instagram account @deeecode
where I share code/tech tips from time to time. Do follow if you’re interested :)
If you’d like to talk about Tech (writing or software engineering) or have questions, you can schedule a meeting with me in my Calendly profile
. Looking forward to meeting you.
As a content creator, I love simplifying diverse topics in web development that I understand. Do you have any issues, tools, or frameworks that you’d like to understand better? Do let me know, and I may come up with an article or video on it.
A new week, another opportunity to do amazing things! So go do amazing things 🚀.
Do have a splendid week 🌟