On 09/18/2018 01:22 PM, Neha Gowda wrote: > Can you please let me know if its the expected behavior or some bug? First consider the value of (float)RAND_MAX. Then please consider if using -ffloat-store will make any difference to your program and then you may be enlightened. If not, please come back and ask again. -- Andrew Haley Java Platform Lead Engineer Red Hat UK Ltd. <https://www.redhat.com> EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671