---
title: "Dinesh Aitham (@dineshaitham) | Hashnode"
description: "Student. Read the latest articles by Dinesh Aitham on Hashnode."
url: "https://hashnode.com/@dineshaitham"
---

@dineshaitham

# Dinesh Aitham

@dineshaitham · Joined February 2022

Student

## Comments

[Actually solidity is not capable of creating random numbers in a specific range. encodePacked is used to encode in-place means it generates the combined encoded hash code and further keccak256 generates a unique 32 hash code. I searched google for other ways to generate the random number. I found this blog they explained better than so i stopped my explanation pls follow this link. https://blog.finxter.com/how-to-generate-random-numbers-in-solidity/ why modulo? To convert a 32 byte uint number to a specific range. We have to use modulo function..](https://hashnode.com/posts/building-a-mini-lottery-system-on-ethereum-with-solidity--deleted/62284d4867104e8316e3fe8d/comment/6228b60467104e8316e40f0d#reply-6228c34a67104e8316e41247)

Reply · Article · Mar 9, 2022 · [Building a Mini-Lottery System on Ethereum With Solidity](https://hashnode.com/posts/building-a-mini-lottery-system-on-ethereum-with-solidity--deleted/62284d4867104e8316e3fe8d)
