Posts

Showing posts from November, 2018

Elementary school math with Kids... using PowerShell

Image
I attended a parent-teacher conference this week in my kids' school. Interesting enough the school now evaluates students' math level with an online services, which claimed to provide real-time feedback to teacher. Needless to say, kids have areas to improve. I came home that night and decided to play some math games with my kids. I started my saying random numbers and challenged kids to add or subtract those numbers. Like... "Let me challenge you with this question.... 17 + 12?" Soon, I started to repeat numbers and also forgot about the number I just said! 🤦‍♂️ So... I whispered to myself, there is nothing can't be done with a little bit determination and PowerShell. I started off by using the Get-Random to get random numbers between 1 and 30. Then decided to have PowerShell just generate the questions for me. PS C:\Users\l> Get-Random -Minimum 1 -Maximum 30 7 PS C:\Users\l> Write-Host "$(Get-Random -Minimum 1 -Maximum 30) + $(Get-Random -Min