# Why is this code wrong?

**URL:** https://discourse.julialang.org/t/why-is-this-code-wrong/72928
**Category:** General Usage
**Created:** [December 11, 2021, 8:28am UTC](https://discourse.julialang.org/t/why-is-this-code-wrong/72928 "2021-12-11T08:28:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)
#### Post date: [December 11, 2021, 9:18am UTC](https://discourse.julialang.org/t/why-is-this-code-wrong/72928/2 "2021-12-11T09:18:54Z")

</div>

Please have a look at this post: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) . It explains how to ask a question, to make it easier for people to understand and answer.

What is the problem you have with this code? Anyway just trying to execute it, it fails on one of the first lines: `pdp = [LinRange(box[1],box[2],ninit),box[3].+1e-4.rand(ninit,1)]` because `1e-4.rand(ninit,1)` doesn’t make sense. Do you mean `1e-4.*rand(ninit)`?

---

_[View the full topic](https://discourse.julialang.org/t/why-is-this-code-wrong/72928)._
