<div dir="ltr">Appologies, I hit send before finisinh the email. Here is the complete mail:<br><br><div><div><div><div><div><div><div><div><span style="font-family:arial,helvetica,sans-serif">I'm busy learning to use proper and have the following issue. When calling the function<br><code><span class="gmail-m_7209538006811084840gmail-tok-nn"><br></span></code></span>From the API docs, the char() type has a range of 0 to (1114111) 16#10ffff.<br></div></div><span style="font-family:arial,helvetica,sans-serif"><br>When calling the function<br><code><span class="gmail-m_7209538006811084840gmail-tok-nn"><br>proper_gen</span><span class="gmail-m_7209538006811084840gmail-tok-p">:</span><span class="gmail-m_7209538006811084840gmail-tok-nf">pick</span><span class="gmail-m_7209538006811084840gmail-tok-p">(</span><span class="gmail-m_7209538006811084840gmail-tok-nn">proper_types</span><span class="gmail-m_7209538006811084840gmail-tok-p">:</span><span class="gmail-m_7209538006811084840gmail-tok-nf">t<wbr>erm</span><span class="gmail-m_7209538006811084840gmail-tok-p">()).</span></code></span><br><br>manually
many times (I've tried in around 3000 times) and on different VMs, the
function always seems to return only one of the following values:<br><br></div>{ok,0},<br></div>{ok,2},<br></div>{ok,3},<br></div>{ok,6}<br></div>{ok,12} and<br></div><div>{ok,13}<br><br></div><div>I see the same behaviour for <br><br>proper_gen:pick(proper_types:range(0,16#10ffff)).<br><br></div><div>which I believe is equivalent.<br></div><div><br></div><div>I have tried on erlang 19.3.6.9, erlang 20.3.6 on a Mac as well as on a ubuntu trusty docker image with erlang 19.3.<br></div><div><br></div><div>In all three vms I see the same set of results being returned. <br><br></div><div>Is there something else I need to do before calling this function?<br><br></div><div>Thanks,<br></div><div>Ryan</div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 May 2018 at 11:07, Ryan Maclear <span dir="ltr"><<a href="mailto:ryanm@miranetworks.net" target="_blank">ryanm@miranetworks.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><span style="font-family:arial,helvetica,sans-serif">Good Day,<br><br></span></div><span style="font-family:arial,helvetica,sans-serif">I'm busy learning to use proper and have the following issue. When calling the function<br><code><span class="m_7209538006811084840gmail-tok-nn"><br></span></code></span>From the API docs, the char() type has a range of 0 to (1114111) 16#10ffff.<br></div></div><span style="font-family:arial,helvetica,sans-serif"><br>When calling the function<br><code><span class="m_7209538006811084840gmail-tok-nn"><br>proper_gen</span><span class="m_7209538006811084840gmail-tok-p">:</span><span class="m_7209538006811084840gmail-tok-nf">pick</span><span class="m_7209538006811084840gmail-tok-p">(</span><span class="m_7209538006811084840gmail-tok-nn">proper_types</span><span class="m_7209538006811084840gmail-tok-p">:</span><span class="m_7209538006811084840gmail-tok-nf">t<wbr>erm</span><span class="m_7209538006811084840gmail-tok-p">()).</span></code></span><br><br>manually many times (I've tried in around 3000 times) and on different VMs, the function always seems to return only one of the following values:<br><br></div>{ok,0},<br></div>{ok,2},<br></div>{ok,3},<br></div>{ok,6}<br></div>{ok,12} and<br></div><div>{ok,13}<br><br></div><div>I see the same behaviour for <br><br></div><div><br></div><div>I have tried on erlang 19.3.6.9, erlang 20.3.6 on a Mac as well as on a ubuntu trusty docker image with erlang 19.3.<br></div><div><br></div><div>In all three vms I see the same set of results being returned. <br><br></div><div>Is there something else I need to do before calling this function?<br><br></div><div>Thanks,<br></div><div>Ryan<br></div></div>
</blockquote></div><br></div>