---
title: "Random Experiments (@STF) | Hashnode"
description: "Random Experiments (@STF) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@STF"
---

@STF

# Random Experiments

@STF · Joined January 2018

## Comments

[Hi, I am doing some tests and facing problem with total supply and with option to have 100% of coin. For example I want to create 1.000000 (million) coins and have all of of them. Also decimal places 18. What values I need change in: balances\[msg.sender\] = 1000000000000000000000; // Give the creator all initial tokens. This is set to 1000 for example. If you want your initial tokens to be X and your decimal is 5, set this value to X \* 100000. (CHANGE THIS) totalSupply = 1000000000000000000000; // Update total supply (1000 for example) (CHANGE THIS) Thanks, STF](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5a5c7588534a2f560ab0a419#reply-5a6463d64a0d9fd960f53d0e)

Reply · Article · Jan 21, 2018 · 1 · [How to build your own Ethereum based ERC20 Token and launch an ICO in next 20 minutes](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4)
