# different result betweent online and local

**URL:** <https://community.cesium.com/t/different-result-betweent-online-and-local/6426>\
**Category:** CesiumJS\
**Created:** [January 3, 2018, 6:42am UTC](https://community.cesium.com/t/different-result-betweent-online-and-local/6426 "2018-01-03T06:42:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kai\_du](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kai\_du](https://community.cesium.com/u/kai_du)\
**Post date:** [January 3, 2018, 6:42am UTC](https://community.cesium.com/t/different-result-betweent-online-and-local/6426/1 "2018-01-03T06:42:00Z")

</div>

1. A concise explanation of the problem you're experiencing.

i found out different result when i test the same demo local and online ,the version

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

online demo entity path look smooth,but local is not

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

i want to draw a entity path in my project that look smooth

4. The Cesium version you're using, your operating system and browser.\

cesium version:1.41;  
operating system:win7 Ultimate  
browser:the latest chrome

---

<div class="post-metadata">

**Author:** ![kai\_du](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kai\_du](https://community.cesium.com/u/kai_du)\
**Post date:** [January 3, 2018, 6:49am UTC](https://community.cesium.com/t/different-result-betweent-online-and-local/6426/2 "2018-01-03T06:49:20Z")

</div>

![local.PNG](https://global.discourse-cdn.com/cesium/original/2X/f/f58fcbe712be7dc0f452e42ae06f5501a86b277d.png)  
 ![online.PNG](https://global.discourse-cdn.com/cesium/original/2X/8/8ee8d67e2ba67285fcb0af7243b120b8b31be39e.png)  
​

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [January 3, 2018, 8:45pm UTC](https://community.cesium.com/t/different-result-betweent-online-and-local/6426/3 "2018-01-03T20:45:02Z")

</div>

Hi there,

Could you provide a code sample? I don’t have enough context for what may be happening here.

Thanks,

Gabby

---

<div class="post-metadata">

**Author:** ![kai\_du](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kai\_du](https://community.cesium.com/u/kai_du)\
**Post date:** [January 4, 2018, 1:24am UTC](https://community.cesium.com/t/different-result-betweent-online-and-local/6426/4 "2018-01-04T01:24:24Z")

</div>

thx for your response，here is the url -“[https://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=c08b0482a3a74973344637f67a0694a1](https://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=c08b0482a3a74973344637f67a0694a1)”，when i copy the code and paste to my local server，the pathes are discontinuous

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [January 4, 2018, 7:30pm UTC](https://community.cesium.com/t/different-result-betweent-online-and-local/6426/5 "2018-01-04T19:30:52Z")

</div>

You’re going to get a different result everytime you run this code.

First, the start time is not constant. Th following line will default to the current system time:

var startTime = viewer.clock.startTime;

``

And secondly, the color and the positions of the lines are generated randomly:

var color = Cesium.Color.fromRandom({  
alpha : 1.0  
});  
var stopLon = Cesium.Math.nextRandomNumber() \* 358 - 179;  
var stopLat = Cesium.Math.nextRandomNumber() \* 178 - 89;

``

If you want it to be consistent, set the clock start time to a specific datetime, and make sure you set the seed of the random generator to something consistent using [**CesiumMath.setRandomNumberSeed**](https://cesiumjs.org/Cesium/Build/Documentation/CesiumMath.html#.setRandomNumberSeed).

---

<div class="post-metadata">

**Author:** ![kai\_du](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kai\_du](https://community.cesium.com/u/kai_du)\
**Post date:** [January 5, 2018, 1:44am UTC](https://community.cesium.com/t/different-result-betweent-online-and-local/6426/6 "2018-01-05T01:44:28Z")

</div>

thank you anyway,maybe sth wrong with my computer,i will find it out
